stl_map.h control flow to stl_tree.h question

Anton Kalinin antonkalinin55@gmail.com
Mon Nov 10 04:36:02 GMT 2025


Why does the map implementation need to call pair_alloc_type on the passed
in map allocator prior to calling the rb_tree constructors.

https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-v3/include/bits/stl_map.h#L211
https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-v3/include/bits/stl_map.h#L246
etc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20251109/6dee4b17/attachment.htm>


More information about the Libstdc++ mailing list