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

From Wikibooks, open books for an open world
< C++ Language‎ | Std‎ | Stl‎ | Algorithms‎ | Querying
Jump to navigation Jump to search

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)