Part II. Containers and Algorithms

CONTENTS

Chapter 9 Sequential Containers

Chapter 10 Associative Containers

Chapter 11 Generic Algorithms

We’ve said that C++ is about efficient programming with abstractions. The Standard Library is a good example: The library defines a number of container classes and a family of generic algorithms that let us write programs that are succinct, abstract, and efficient. The library worries about bookkeeping details—in particular, taking care of memory management—so that our programs can worry about the actual problems we need to solve.

In Chapter 3 we introduced the vector container type. We’ll learn more in Chapter 9 about vector and the other sequential container types provided by the library. We’ll also cover ...

Get C++ Primer, Fourth Edition 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.