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
   );

 

posted @ 2013-03-07 16:19  freewater  阅读(177)  评论(0编辑  收藏  举报