MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1w9ifq7/flat_map_internals/p8n8ry5/?context=3
r/cpp • u/pavel_v • Sep 07 '26
12 comments sorted by
View all comments
Show parent comment
4
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!
-1
Now those are much more useful examples - thanks!
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.