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

[ad_1]

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

[ad_2]

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