O'Reilly logo

Using the C++ Standard Template Libraries by Ivor Horton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 2

image

Using Sequence Containers

This chapter introduces the bread-and-butter containers that you are likely to use most often – sequence containers. And in it, you’ll learn the following:

  • The characteristics of a sequence container
  • How you obtain and use iterators with sequence containers
  • How you use an array container
  • What the capabilities of a vector container are
  • The characteristics and capabilities of a deque container and how it differs from a vector
  • How a list container structures the data elements it contains and what its advantages and disadvantages are
  • How a forward_list container differs from a list, and when you would use it

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required