|
|
template <class ForIter1, class ForIter2> ForIter1 find_first_of(ForIter1 start1, ForIter1 end1, ForIter2 start2, ForIter2 end2); template <class ForIter1, class ForIter2, class BinPred> ForIter1 find_first_of(ForIter1 start1, ForIter1 end1, ForIter2 start2, ForIter2 end2, BinPred pfn);
The find_first_of( ) algorithm finds the first element within the sequence defined by start1 and end1 that matches an element within the range start2 and end2. If no matching element is found, the iterator end1 is returned.
The second form allows you to specify a binary predicate that determines when elements match.
|
|