Your Library
Chapter 12 · ContainersChoosing data structures for storage, traversal, and lookup
Contents
Chapter 11Sections 12.1–12.9

Containers

Choosing data structures for storage, traversal, and lookup

Standard-library containers own collections of objects and provide consistent operations for using them. Their memory layouts and guarantees differ, so choosing one is a practical tradeoff: vector is the usual default, while linked and associative containers solve more specific problems.

In this chapter

  1. 11.1Lesson 12: Containers