Skip to content

Glossary: C++ Beyond the Basics

Algorithm

Also written: algorithms, STL algorithms

A ready-made function from `<algorithm>` (or `<numeric>`) that works on a range of elements, such as `std::sort` or `std::find_if`. Using one replaces a hand-written loop.

Where the book teaches it

Related terms

RangesLambdaComparator