Skip to Main Content
Practical C++
book

Practical C++

by Rob McGregor
August 1999
Beginner to intermediate content levelBeginner to intermediate
912 pages
15h 44m
English
Que
Content preview from Practical C++

Chapter 29. Using Iterators and Containers

<feature>
  • Learn about iterators and why they’re useful

  • Explore iterator operations and classes

  • See the differences between sequence containers and associative containers

  • Examine the standard container classes

</feature>

Understanding Iterators

Iterators and containers are closely related. Conceptually, an iterator is something that an algorithm can use to traverse the sequence of objects in a container; an iterator knows how to iterate through the contents of a container. Standard Template Library (STL) container classes such as vector, list, and map all use iterators to represent container elements. The generic algorithms provided by the standard library work with the generic containers, but not all algorithms ...

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

Practical C++ Programming, 2nd Edition

Practical C++ Programming, 2nd Edition

Steve Oualline
C++ Cookbook

C++ Cookbook

D. Ryan Stephens, Christopher Diggins, Jonathan Turkanis, Jeff Cogswell

Publisher Resources

ISBN: 0789721449Purchase book