All challenges
Multiple ChoiceBeginner 45s

unordered_map rehash pointer stability

In `std::unordered_map`, which is TRUE about rehashing?
Options
  1. 1Rehashing invalidates all references and pointers but not iterators.
  2. 2Rehashing leaves everything valid because buckets are linked in place.
  3. 3Rehashing invalidates iterators but NOT references/pointers to elements (node-based storage).
  4. 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.

Play this in a 3-minute battle