4 ms·
std::map in C++ stores keys in order. You have to use std::unordered_map to not get that behavior.
by reubenmorais 7y ago
std::map in C++ stores keys in order. You have to use std::unordered_map to not get that behavior.
- xyzzyz 7y agoYes, but that’s different kind of order. Python dicts order is insertion order, while std::map is key order.