O'Reilly logo

C++ How to Program, Sixth Edition by H. M. Deitel - Deitel & Associates, Inc., P. J. Deitel - Deitel & Associates, Inc.

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 22. Standard Template Library (STL)

 

The shapes a bright container can contain!

 
 --Theodore Roethke
 

Journey over all the universe in a map.

 
 --Miguel de Cervantes
 

O! thou hast damnable iteration, and art indeed able to corrupt a saint.

 
 --William Shakespeare
 

That great dust heap called “history.”

 
 --Augustine Birrell
 

The historian is a prophet in reverse.

 
 --Friedrich von Schlegel
 

Attempt the end, and never stand to doubt; Nothing’s so hard but search will find it out.

 
 --Robert Herrick

OBJECTIVES

In this chapter you’ll learn:

  • To be able to use the STL containers, container adapters and “near containers.”

  • To be able to program with the dozens of STL algorithms.

  • To understand how algorithms use iterators to access the elements of STL 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