[Solved] Doesn’t std::unordred_map preserve insertion order? [duplicate]


This is expected. In the standard there’re no guarantees regarding the order of elements in std::unordered_map.

solved Doesn’t std::unordred_map preserve insertion order? [duplicate]