O'Reilly logo

Sams Teach Yourself C++ in One Hour a Day, Seventh Edition by Siddhartha Rao

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

Lesson 15. An Introduction to the Standard Template Library

Put in simple terms, the standard template library (STL) is a set of template classes and functions that supply the programmer with

• Containers for storing information

• Iterators for accessing the information stored

• Algorithms for manipulating the content of the containers

In this lesson, you get overview on these three pillars of STL.

STL Containers

Containers are STL classes that are used to store data. STL supplies two types of container classes:

• Sequential containers

• Associative containers

In addition to these STL also provides classes called Container Adapters that are variants of the same with reduced functionality which support a specific purpose.

Sequential Containers ...

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