find_end

The function find_end searches for the last occurrence of a value.

  template<class ForwardIterator1, 
  class ForwardIterator2>
  ForwardIterator1 find_end
  (ForwardIterator1 first1, ForwardIterator1 last1, 
  ForwardIterator2 first2, ForwardIterator2 last2);
  template<class ForwardIterator1, 
  class ForwardIterator2,class BinaryPredicate>
  ForwardIterator1 find_end

  (ForwardIterator1 first1, ForwardIterator1 last1,
  ForwardIterator2 first2, ForwardIterator2 last2,
  BinaryPredicate pred);
  
Remarks

Returns the iterator to the last value or the last1 argument if none is found.