libycxx

function object

std::ranges::views::cartesian_product

Header
<ranges>
Scope
std::ranges::views
cppreference
<ranges> nearest page

Synopsis

inline constexpr /* implementation-defined */ cartesian_product = {};

Call signatures

cartesian_product is a function object; these are its call operators as libycxx declares them, written as the functions the draft declares.

  1. [[nodiscard]] constexpr auto cartesian_product();
    (1)
  2. template<class... Es>
      requires (sizeof...(Es) > 0) &&
                requires { std::ranges::cartesian_product_view<std::views::all_t<Es>...>(
        std::declval<Es>()...); }
    [[nodiscard]] constexpr auto cartesian_product(Es&&... es);
    (2)