#include <itertools.hpp>


template<typename T>
detail::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. Note: The length is equal to the minimum of the lengths of all ranges.

Template parameters

  • T The types of the different ranges


  • ranges The ranges to zip.