.. Generated automatically by cpp2rst .. highlight:: c .. role:: red .. role:: green .. role:: param .. _itertools__foreach: itertools::foreach ================== *#include * **Synopsis** .. rst-class:: cppsynopsis | :green:`template` | void :red:`foreach` (:ref:`range ` const & :param:`rg`, F && :param:`f`) Template parameters ^^^^^^^^^^^^^^^^^^^ * :param:`F` Callable type. Parameters ^^^^^^^^^^ * :param:`rg` itertools::range object. * :param:`f` Callable object to be applied to each element.