Tagged articles
4 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
Jul 10, 2025 · Fundamentals

When to Use const vs constexpr in C++? A Practical Guide

This article explains the differences between C++ const and constexpr, using a kettle analogy, detailed code examples, and practical guidelines to help developers choose the right keyword for compile‑time or runtime constants, improve performance, and write safer code.

C++Compile-timeConstants
0 likes · 8 min read
When to Use const vs constexpr in C++? A Practical Guide
Deepin Linux
Deepin Linux
Jul 3, 2025 · Fundamentals

Mastering const vs constexpr in C++: Key Differences and Interview Tips

This article explains the distinct roles of const and constexpr in C++, covering their usage with variables, pointers, function parameters, and class members, comparing compile‑time and run‑time behaviors, and offering practical interview strategies and code examples for developers.

CCompile-timeconst
0 likes · 19 min read
Mastering const vs constexpr in C++: Key Differences and Interview Tips
Deepin Linux
Deepin Linux
Jun 20, 2025 · Fundamentals

Unlocking C++14: 10 Game-Changing Features Every Developer Should Know

This article explores the most impactful C++14 enhancements—including generic lambdas, variable templates, constexpr extensions, binary literals, and improved type deduction—showing how they boost code flexibility, performance, and safety across a range of real‑world programming scenarios.

C++14Lambdaconstexpr
0 likes · 42 min read
Unlocking C++14: 10 Game-Changing Features Every Developer Should Know