4 ms·
The use of chaining and the requirement of pointer stability are written into the standard. Changing the implementation to do something else would require chang
by variadix 2y ago
The use of chaining and the requirement of pointer stability are written into the standard. Changing the implementation to do something else would require changing the standard, which would change the API contract, which would break existing code.
- cozzyd 2y agoYeah but they could add a better one with a different name (std::dict?)
- beached_whale 2y agoI think Boost::unordered_map is a drop in replacement, but I think it is the breaking of existing code part. Not that they couldn't pop that behind an ABI flag.