15 Standard Library Containers and Iterators

Objectives

In this chapter you’ll:

  • Be introduced to the Standard Library containers, iterators and algorithms.

  • Use the vector, list and deque sequence containers.

  • Use the set, multiset, map and multimap associative containers.

  • Use the stack, queue and priority_queue container adapters.

  • Use iterators to access container elements.

  • Use the copy algorithm and ostream_iterators to output a container.

  • Understand how to use the bitset “near container” to manipulate a collection of bit flags.

Get C++ How to Program, 10/e now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.