Chapter 5
Standard Library Containers and Algorithms
Section 8
Algorithms Provided by the C++ Standard Template Library
Algorithms are a way to operate on containers in an abstract way. The C++ standard library provides a wide range of algorithms for all the common operations that can be performed on ranges of elements. Because algorithms accept iterators, they can operate on any container, even user defined containers, if they provide iterators.