Next : , Previous : For each, Top : Table of  Contents


Find

InputIterator find (InputIterator first, InputIterator last, const T& value) Function
InputIterator find_if (InputIterator first, InputIterator last, Predicate pred) Function

template 
InputIterator find(InputIterator first, InputIterator last, const T& value);

template 
InputIterator find_if(InputIterator first, InputIterator last, Predicate pred);

find returns the first iterator i in the range [first, last) for which the following corresponding conditions hold: *i == value, pred(*i) == true. If no such iterator is found, last is returned. Exactly find(first, last, value) - first applications of the corresponding predicate are done.


 

Top