Name

for_each function template — Calls a function for each item in a range

Synopsis

template<typename InIter, typename Func>
  Function for_each(InIter first, InIter last, Func f);

The for_each function template calls f for each item in the range [first, last), passing the item as the sole argument to f. It returns f.