Chapter 23. 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. ...

Get Visual C++ 2008: How to Program, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.