摘要: // for_each. Apply a function to every element of a range.template <class _InputIter, class _Function>_Function for_each(_InputIter __first, _InputIter __last, _Function __f) { __STL_REQUIRES(_InputIter, _InputIterator); for ( ; __first != __last; ++__first) __f(*__first); return __f;}__f(T);. 阅读全文
posted @ 2012-09-04 10:39 LambdaTea 阅读(704) 评论(0) 推荐(0) 编辑