Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
garmaine
on Dec 10, 2019
|
parent
|
context
|
favorite
| on:
Why databases use ordered indexes but programming ...
std::map in C++ is way easier to work with than std::unordered_map (which didn't even exist until C++11).
yuushi
on Dec 10, 2019
[–]
Define "way easier". The interface, at least for day to day operations, is basically identical.
garmaine
on Dec 10, 2019
|
parent
[–]
Supports more features like ordered traversal, generally faster in most cases (yup!), consistent api cost, doesn’t invalidate iterators on certain operations like moving between maps. That’s just off the top of my head.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: