Learn C++ STL

Lesson 8 of 9 · stack and queue: Last In First Out, First In First Out

Module 6 · stack and queue: Last In First Out, First In First Out

Cheat Sheet: stack and queue 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: stack and queue on One Page

  1. Declaring a stack and a queue
  2. Every stack operation and its cost
  3. Every queue operation and its cost
  4. The container inside
  5. The six idioms
  6. Which adaptor, in one table
  7. The five 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