Jump to content

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

From Wikibooks, open books for an open world

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)