The function find_if searches for the first element that matches the criteria passed by the predicate.
template<class InputIterator, class Predicate> InputIterator find_if (InputIterator first, InputIterator last,Predicate pred);
Returns the iterator of the matched value.