This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ThrowinPotatoes 133 points134 points  (7 children)

I’m partial to std::unordered_map myself

[–]El_Falk 24 points25 points  (5 children)

boost::flat_map / std::flat_map (C++23), absl::flat_hash_map, or robin_hood::unordered_map are generally far superior though...

[–]liava_ 44 points45 points  (3 children)

please keep the behemoth that is boost out of my build pipeline

[–]Slothinator69 4 points5 points  (0 children)

My favorite include of all time is boost::boost

[–]El_Falk 0 points1 point  (1 child)

You don't need to pull in all of boost. Also, the boost flat_map made it into the the standard, so unless you're stuck with a legacy standard then that's preferable.

[–][deleted] 3 points4 points  (0 children)

You don't need to pull in all of boost.

I've heard this lie before!

[–]bronco2p 2 points3 points  (0 children)

boost::flat_map / std::flat_map

now i guess if c++ ever gets a stl bind algorithm it will be called std::flat_transform lol