itertools::product_range

#include <itertools.hpp>

Synopsis

  1. template<typename Is, typename EnableIf = std::enable_if_t<(std::is_integral_v<Is>and…),int>
    auto product_range (Is… is)
  2. template<typename Is, typename EnableIf = std::enable_if_t<(std::is_integral_v<Is>and…),int>
    auto product_range (std::tuple<Is…> const & idx_tpl)
  3. template<typename I, size_t N, typename EnableIf = std::enable_if_t<std::is_integral_v<I>,int>
    auto product_range (std::array<I, N> const & idx_arr)

Documentation

Template parameters

  • Is Integer types.

  • I Integer type.

  • N Number of elements in the array.

Parameters

  • is Last values of the integer ranges (excluded).

  • idx_tpl Tuple containing the excluded last values of the integer ranges.

  • idx_arr Array containing the excluded last values of the integer ranges.

Returns

Product (itertools::multiplied) range of integer ranges. See itertools::product and itertools::range.