itertools::make_product

#include <itertools.hpp>

Synopsis

  1. template<typename R, size_t N>
    auto make_product (std::array<R, N> & arr)
  2. template<typename R, size_t N>
    auto make_product (std::array<R, N> const & arr)

Documentation

2) Const overload of make_product(std::array<R, N> &).

Template parameters

  • R Range type.

  • N Number of ranges.

Parameters

  • arr Array of ranges.

Returns

A product (itertools::multiplied) range from the ranges in the array.