16. Standard Library Algorithms
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:
• Program with many of the dozens of Standard Library algorithms.
• Use iterators with algorithms to access and manipulate the elements of Standard Library containers.
• Pass function pointers, function objects and lambda expressions into Standard Library algorithms.
Get C++ How to Program, Ninth Edition 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.