Defined in header <algorithm> template< class InputIt, class UnaryFunction >
UnaryFunction for_each( InputIt first, InputIt last, UnaryFunction f );
Applies the given function object f to the result of dereferencing every iterator in the range [first, last), in order.
If InputIt is a mutable iterator, f may modify the elements of the range through the dereferenced iterator. If f returns a result, the result is ignored.
Parameters
first, last - the range to app