ls lib/cpp/
C++
libc++ and libstdc++: sorting and hash tables.
- draft How std::unordered_map works, and why it can't be flatWhat libc++ 22 allocates for every std::unordered_map entry, how it picks bucket counts, why std::hash<int> returns its argument, and which rules in the C++ standard rule out an open-addressing table.
- draft std::sort, partial_sort and nth_element in libc++What libc++ 22 runs for std::sort, std::partial_sort, std::nth_element and std::stable_sort, how many comparisons each makes, and an adversary that makes nth_element quadratic.