16 Standard Library Algorithms

Objectives

In this chapter you’ll:

  • Understand minimum iterator requirements for working with Standard Library algorithms and containers.

  • Create anonymous functions using lambda expressions.

  • Capture local variables for use in lambda expressions.

  • Use containers and iterators with many of the dozens of Standard Library algorithms.

  • Use iterators with algorithms to access and manipulate the elements of Standard Library containers.

  • Pass lambda expressions, function pointers and function objects into Standard Library algorithms to help them perform their tasks.

Get C++ How to Program, 10/e now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.