![rehashLinux](https://www.modernescpp.com/wp-content/uploads/2016/11/rehashLinux.png)
Buckets, Capacity, and Load Factor
/
0 Comments
The hash function maps a potentially infinite number of keys on a finite number of buckets. What is the…
![hashfunction](https://www.modernescpp.com/wp-content/uploads/2016/11/hashfunction.png)
Hash Functions
The hash function is responsible for the unordered associative containers' constant access time (best…
Associative Containers – A simple Performance Comparison
Before I take a deeper look insight the interface of the hash tables - officially called unordered associative…
![geordneteAssoziativeArrays](https://www.modernescpp.com/wp-content/uploads/2016/11/geordneteAssoziativeArrays.png)
Hash Tables
We missed the hash table in C++ for a long time. They promise to have constant access time. C++11 has…
![ContainerVersusElement](https://www.modernescpp.com/wp-content/uploads/2016/11/ContainerVersusElement.png)
Type-Traits: Performance Matters
If you look carefully, you see type-traits have a big optimization potential. The type-traits support…
![constexpr11](https://www.modernescpp.com/wp-content/uploads/2016/11/constexpr11.png)
constexpr Functions
constexpr functions are functions that can be executed at compile time. Sounds not so thrilling. But…
![userdefinedTypes](https://www.modernescpp.com/wp-content/uploads/2016/11/userdefinedTypes.png)
constexpr – Variables and Objects
If you declare a variable as constexpr the compiler will evaluate them at compile time. This holds not…
![userdefinedLiteralsConstexprResult](https://www.modernescpp.com/wp-content/uploads/2016/11/userdefinedLiteralsConstexprResult.png)
Constant Expressions with constexpr
You can define with the keyword constexpr an expression that can be evaluated at compile time. constexpr…
![inline](https://www.modernescpp.com/wp-content/uploads/2016/11/inline.png)
inline
Thanks to inline, the compiler can replace the function call with the function body. There are two reasons…
![null](https://www.modernescpp.com/wp-content/uploads/2016/11/null.png)
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…