Function for_each (InputIterator first, InputIterator last, Function f); | Function |
templateFunction for_each(InputIterator first, InputIterator last, Function f);
for_each applies f to the result of dereferencing every iterator in the range [first, last) and returns f. f is assumed not to apply any non-constant function through the dereferenced iterator. f is applied exactly last - first times. If f returns a result, the result is ignored.
|
|