itertools::product

#include <itertools.hpp>

Synopsis

template<typename T>
details::multiplied<T…> product (T &&… ranges)

Lazy-product of multiple ranges. This function returns itself a range of tuple<T…>. Iterating over it will yield all combinations of the different range values. Note: The ranges are incremented beginning with the leftmost range.

Template parameters

  • T The types of the different ranges

Parameters

  • ranges The ranges to zip. Note: They have to be of equal length!