function object
std::ranges::views::cartesian_product
- Header
<ranges>- Draft
- [ranges.syn]
- 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(); - (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);