constexpr Functions
/
0 Comments
constexpr functions are functions that can be executed at compile time. Sounds not so thrilling. But…
constexpr – Variables and Objects
If you declare a variable as constexpr the compiler will evaluate them at compile time. This holds not…
Constant Expressions with constexpr
You can define with the keyword constexpr an expression that can be evaluated at compile time. constexpr…
inline
Thanks to inline, the compiler can replace the function call with the function body. There are two reasons…
The Null Pointer Constant nullptr
The new null pointer nullptr cleans up in C++ with the ambiguity of 0 and the macro NULL.
The number…
override and final
Using the context-sensitive keyword override and final, you can explicitly manage the overriding of virtual…
Strongly-Typed Enums
Enumerations are a convenient way to define integer constants with names. These integer constants are…
Raw and Cooked
C++11 has user-defined literals for characters, C strings, integers, and floating-point numbers. Integers…
User-Defined Literals
User-defined literals are a unique feature in all mainstream programming languages. They empower you…
Published at Leanpub: The C++ Standard Library
Just published: The C++ Standard Library: What every professional C++ programmer should know about the…
I’m proud to present: The C++ Standard Library
The C++ Standard Library: All you have to know as a professional programmer about the C++ library.
I'm…
Compare and Modify Types
The type-traits library empowers you to compare and modify types. All is done at compile time therefore,…