find_if function template — Searches for when a predicate returns true
template<typename InIter, typename Predicate>
InIter find_if(InIter first, InIter last, Predicate pred);
The find_if
function
template (similar to find
)
searches the range [first
,
last
) for the first item for
which pred(*iter)
is true. It
returns an iterator that points to the matching item. If no matching
item is found, last
is
returned.