r/cpp • • Sep 07 '26

flat_map internals

https://quantdev.blog/posts/flat-map-internals/index.html
12 Upvotes

12 comments sorted by

View all comments

Show parent comment

4

u/kirgel Sep 08 '26

The most prominent one is boost:  https://www.boost.org/doc/libs/1_57_0/doc/html/boost/container/flat_map.html

Searching GitHub yields some lesser known ones:  https://github.com/topics/flat-map

I have also seen the same thing widely used in an internal codebase of an ex-employer.

In this particular case I think the naming is nice enough. Rust’s usage certainly also makes sense in its own context.

-1

u/tialaramex Sep 08 '26

Now those are much more useful examples - thanks!