Y
Hacker News
new
|
ask
|
show
|
jobs
by
reubenmorais
2328 days ago
std::map in C++ stores keys in order. You have to use std::unordered_map to not get that behavior.
1 comments
xyzzyz
2328 days ago
Yes, but that’s different kind of order. Python dicts order is
insertion
order, while std::map is
key
order.
link