STL: adjacent_find

adjacent_find

Searches for two adjacent elements that are either equal or satisfy a specified condition.即,找出第一组满足条件的相邻元素。

template<class ForwardIterator>
   ForwardIterator adjacent_find(
      ForwardIterator _First, 
      ForwardIterator _Last
   );
template<class ForwardIterator , class BinaryPredicate>
   ForwardIterator adjacent_find(
      ForwardIterator _First, 
      ForwardIterator _Last, 
      BinaryPredicate _Comp
   );
原文地址:https://www.cnblogs.com/freewater/p/2948291.html