Multiple ChoiceBeginner 45s
unordered_map rehash pointer stability
In `std::unordered_map`, which is TRUE about rehashing?
Options
- 1Rehashing invalidates all references and pointers but not iterators.
- 2Rehashing leaves everything valid because buckets are linked in place.
- 3Rehashing invalidates iterators but NOT references/pointers to elements (node-based storage).
- 4Rehashing only moves values, invalidating nothing.
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.