Learn C++ STL

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

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

Every Operation, With Its Qualifier

ProReading

Bob sees O(1) beside insertion and stops reading. His program then searches a linked row before every insert. The row grows, and the deadline passes. Amara asks him to price the complete operation, including finding its place.

Checking what this lesson needs for you…

What is inside Every Operation, With Its Qualifier

  1. What a complexity bound counts
  2. Every container in one cost table
  3. Read size and positions
  4. Append and emplace
  5. Insert at a known place
  6. Erase one or several
  7. Find by key
  8. Reserve and clear
  9. Transfer and sort