The function for_each is used to perform an operation for each element.
template<class InputIterator, class Function> Function for_each (InputIterator first, InputIterator last, Function f);
The function f is returned.