Learn C++ STL

Lesson 8 of 9 · Iterators: The Thing Between a Container and an Algorithm

Module 11 · Iterators: The Thing Between a Container and an Algorithm

Cheat Sheet: Iterators on One Page

ProReading

This page is the module on one sheet, for the moment before a contest or an interview. Every line here was taught, measured or run in lessons 01 to 06. Nothing is new. Print it, or keep it open beside the editor.

Checking what this lesson needs for you…

What is inside Cheat Sheet: Iterators on One Page

  1. The five categories
  2. The four ends on one vector
  3. Every operation and its cost
  4. Insert and stream iterators
  5. When an iterator stops being valid
  6. The eight idioms
  7. Which loop: the flowchart as a table
  8. The ten traps

Module test

Ten questions on this module. Pass at 70%, and you can take it as many times as you like.

Take the module test