Posts
![](https://www.modernescpp.com/wp-content/uploads/2023/08/Cpp23-2-495x400.png)
C++23: Four new Associative Containers
The four associative containers std::flat_map, std::flat_multimap, std::flat_set, and std::flat_multiset…
![brno 2783268 1280](https://www.modernescpp.com/wp-content/uploads/2019/06/brno-2783268_1280.jpg)
C++ Core Guidelines: Avoid Bounds Errors
/
0 Comments
When you access an element outside a container of the STL, the result is not so promising. Your effect…
![book 159880 1280](https://www.modernescpp.com/wp-content/uploads/2019/05/book-159880_1280.png)
More special Friends with std::map and std::unordered_map
Modern C++ has eight associative containers, but your special friends should be std::map and std::unordered_map.…
![640px Schienennetz Schweiz.svg](https://www.modernescpp.com/wp-content/uploads/2018/03/640px-Schienennetz_Schweiz.svg.png)
C++ Core Guidelines: More about Control Structures
My last German post C++ Core Guidelines: To Switch or not to Switch, that is the Question got…
![](https://www.modernescpp.com/wp-content/uploads/2017/05/eightAssociativeContainers.png)
C++17: Improved Associative Containers and Uniform Container Access
C++11 has eight associative containers. With C++17, you can more comfortably insert new elements into…
![timeline.FunktionalInCpp11Cpp14Eng](https://www.modernescpp.com/wp-content/uploads/2017/01/timeline.FunktionalInCpp11Cpp14Eng.png)
Functional in C++11 and C++14: Dispatch Table and Generic Lambdas
My favorite example, the dispatch table, shows how nicely the features in modern C++ work together. A…
![rehashLinux](https://www.modernescpp.com/wp-content/uploads/2016/11/rehashLinux.png)
Buckets, Capacity, and Load Factor
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…