3 ms·
The problem with STD requirements is they choose an implementation and then tailor the requirements to it tightly, thus preventing any other set of tradeoffs.
by hoseja 4y ago
The problem with STD requirements is they choose an implementation and then tailor the requirements to it tightly, thus preventing any other set of tradeoffs.
- dataangel 4y agoThat's not actually what drove it here. std::unordered_map has the requirements it does in order to make it a drop in replacement for std::map in cases where you don't care about traversal order. They wanted it to be as easy as possible for people to find/replace in their code.