itertools::foreach

#include <itertools.hpp>

Synopsis

template<typename F>
void foreach (range const & rg, F && f)

Template parameters

  • F Callable type.

Parameters

  • rg itertools::range object.

  • f Callable object to be applied to each element.