STL: for_each

for_each

Applies a specified function object to each element in a forward order within a range and returns the function object.

template<class InputIterator, class Function> 
   Function for_each( 
      InputIterator _First,  
      InputIterator _Last,  
      Function _Func 
   );

 

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