Learn C++ STL

Lesson 4 of 9 · Under the Hood: Memory, Cache, Allocators and the Guarantees

Module 17 · Under the Hood: Memory, Cache, Allocators and the Guarantees

The Complete Handle Invalidation Table

ProReading

Alice marks one library card with an iterator. Bob inserts another card and hands the marker back. The card still exists, but the marker may no longer be usable. Maria asks whether a pointer would behave differently. Sometimes it does, so one column cannot answer all three questions.

Checking what this lesson needs for you…

What is inside The Complete Handle Invalidation Table

  1. Three handles and one boundary
  2. Read invalidation by operation
  3. Choose by the lifetime you need