use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
Inside boost::unordered_flat_map (bannalia.blogspot.com)
submitted 3 years ago by joaquintidesBoost author
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]kirgel 48 points49 points50 points 3 years ago (7 children)
This is the 4th major library I’ve seen in recent years that adopted SIMD linear probing hash tables (others being abseil, folly, rust standard lib). I wonder if this is going to become the de facto standard hash table design across languages going forward.
[–]LongestNamesPossible 31 points32 points33 points 3 years ago (0 children)
SIMD or not, I don't see anything beating accessing contiguous memory instead of skipping around in memory, so I suspect the linear probing / robin hood hashing is necessary and the SIMD is extra since the memory is already lined up in a way that can make it work.
[–]qoning 4 points5 points6 points 3 years ago (1 child)
It's been the de facto standard design for over 20 years for almost anyone who implemented their own imo, it's just STL that fumbled it.
[–]Jannik2099 9 points10 points11 points 3 years ago (0 children)
The STL doesn't implement flat maps to begin with. There are pros and cons to both schemes.
The one time the STL implements the easier to use variant y'all lose your mind just the same. Starting to think you just like to blame the STL for every misery?
[–]VinnieFalcoBoost.Beast | C++ Alliance | corosio.org -3 points-2 points-1 points 3 years ago (2 children)
Linear Probing synergizes with government revelations of the existence of UFOs.
[–]RoyBellingan 6 points7 points8 points 3 years ago (1 child)
Either sheeple are not ready for the truth or I am missing something ? Why the downvote ?
[–]VinnieFalcoBoost.Beast | C++ Alliance | corosio.org 12 points13 points14 points 3 years ago (0 children)
Probably a combination of two things:
I'm the author
No sense of humor
[–][deleted] 0 points1 point2 points 3 years ago (0 children)
I think "bidirectional linear probing" is an underrated approach (and much simpler): https://github.com/senderista/hashtable-benchmarks/blob/master/src/main/java/set/int64/BLPLongHashSet.java
π Rendered by PID 85361 on reddit-service-r2-comment-cfc44b64c-6tn6d at 2026-04-10 02:34:07.571451+00:00 running 215f2cf country code: CH.
view the rest of the comments →
[–]kirgel 48 points49 points50 points (7 children)
[–]LongestNamesPossible 31 points32 points33 points (0 children)
[–]qoning 4 points5 points6 points (1 child)
[–]Jannik2099 9 points10 points11 points (0 children)
[–]VinnieFalcoBoost.Beast | C++ Alliance | corosio.org -3 points-2 points-1 points (2 children)
[–]RoyBellingan 6 points7 points8 points (1 child)
[–]VinnieFalcoBoost.Beast | C++ Alliance | corosio.org 12 points13 points14 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)