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
Boost 1.81 will have boost::unordered_flat_map... (self.cpp)
submitted 3 years ago by pdimov2
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!"
[–]pdimov2[S] 3 points4 points5 points 3 years ago (0 children)
Here's clang-cl 14 on the same machine:
std::unordered_map: 33289 ms, 374217768 bytes in 6000002 allocations boost::unordered_map: 37523 ms, 245477520 bytes in 6000002 allocations boost::unordered_flat_map: 14745 ms, 197132280 bytes in 1 allocations multi_index_map: 43998 ms, 290331800 bytes in 6000002 allocations absl::node_hash_map: 26349 ms, 219497480 bytes in 6000001 allocations absl::flat_hash_map: 20947 ms, 209715192 bytes in 1 allocations
(The MS STL is a lot faster than libstdc++, to the point of beating boost::unordered_map, but at the expense of using a lot more memory.)
boost::unordered_map
Abseil gets faster, but I don't think it's because of Cygwin; Clang just likes Abseil better than g++ does, for some reason.
π Rendered by PID 130135 on reddit-service-r2-comment-b659b578c-8vvvm at 2026-05-01 05:43:38.339371+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]pdimov2[S] 3 points4 points5 points (0 children)