Skip to content

Glossary: C++ Beyond the Basics

std::find_if

Also written: find_if, count_if, any_of, all_of

Algorithms that take a lambda: `find_if` returns an iterator to the first match (or `end()`), `count_if` counts matches, and `any_of` / `all_of` ask whether any or all elements match.

Where the book teaches it

Related terms

AlgorithmIteratorLambda