find_if

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);
  
Remarks

Returns the iterator of the matched value.