template<class InputIterator, class Function>
Function for_each(InputIterator first, InputIterator last, Function f);
Effects:
Applies f to the result of dereferencing every iterator in the range [first, last) starting from first and proceeding to last - 1.
Parameters:
first, last -...