STL: reverse

reverse

Reverses the order of the elements within a range.

template<class BidirectionalIterator> 
   void reverse( 
      BidirectionalIterator _First,  
      BidirectionalIterator _Last 
   );

 

reverse_copy

Reverses the order of the elements within a source range while copying them into a destination range

template<class BidirectionalIterator, class OutputIterator> 
   OutputIterator reverse_copy( 
      BidirectionalIterator _First,  
      BidirectionalIterator _Last,  
      OutputIterator _Result 
   );

 

posted @ 2013-03-11 11:13  freewater  阅读(236)  评论(0编辑  收藏  举报