C++ Language/Std/Stl/Algorithms/Querying/Searching

< C++ Language‎ | Std‎ | Stl‎ | Algorithms‎ | Querying

The algorithm std::find_if(x.begin(), x.end(), callableObject) returns an iterator to the first item that it finds satisfying the callable-object (which must return a bool).

Additional information about searching algorithms (includes interactive examples)