itertools::foreach

#include <itertools.hpp>

Synopsis

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

Apply a function f to every element of an integer range

Parameters

  • r The range to apply the function to

  • f The function to apply