Hash Tables
/
0 Comments
We missed the hash table in C++ for a long time. They promise to have constant access time. C++11 has…
Type-Traits: Performance Matters
If you look carefully, you see type-traits have a big optimization potential. The type-traits support…
constexpr Functions
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…