Skip to Main Content
C++ Primer, Fourth Edition
book

C++ Primer, Fourth Edition

by Stanley B. Lippman, Josée Lajoie, Barbara E. Moo
February 2005
Intermediate to advanced content levelIntermediate to advanced
912 pages
25h 26m
English
Addison-Wesley Professional
Content preview from C++ Primer, Fourth Edition

Chapter 9. Sequential Containers

CONTENTS

Section 9.1 Defining a Sequential Container 307

Section 9.2 Iterators and Iterator Ranges 311

Section 9.3 Sequence Container Operations 316

Section 9.4 How a vector Grows 330

Section 9.5 Deciding Which Container to Use 333

Section 9.6 strings Revisited 335

Section 9.7 Container Adaptors 348

Chapter Summary 353

Defined Terms 353

This chapter completes our discussion of the standard-library sequential container types. It expands on the material from Chapter 3, which introduced the most commonly used sequential container, the vector type. Elements in a sequential container are stored and accessed by position. The library also defines several associative containers, which hold elements whose order depends ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C++ Primer, Fifth Edition

C++ Primer, Fifth Edition

Stanley B. Lippman, Josée Lajoie, Barbara E. Moo
Advanced C++

Advanced C++

Gazihan Alankus, Olena Lizina, Rakesh Mane, Vivek Nagarajan, Brian Price

Publisher Resources

ISBN: 0201721481Purchase book