Iterator / Reference / Pointer Invalidation 全景 | STL
本章覆盖:vector reallocation;deque;list;map/set;unordered rehash;erase;insert;end iterator;reference stability;pointer stability;dangling;修改容器 API 前先查 invalidation contract。
本章知识点
- vector reallocation
- deque
- list
- map/set
- unordered rehash
- erase
- insert
- end iterator
- reference stability
- pointer stability
- dangling
- 修改容器 API 前先查 invalidation contract