15.2 Introduction to Containers2

The Standard Library container types are shown in Fig. 15.1. The containers are divided into four major categories—sequence containers, ordered associative containers, unordered associative containers and container adapters.

Fig. 15.1 Standard Library container classes and container adapters.

Container class Description
Sequence containers
array Fixed size. Direct access to any element.
deque Rapid insertions and deletions at front or back. Direct access ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.