We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 422d941 commit 68976baCopy full SHA for 68976ba
libcxx/include/__ranges/cartesian_product_view.h
@@ -143,11 +143,11 @@ class cartesian_product_view : public view_interface<cartesian_product_view<Firs
143
return it;
144
}
145
146
- template <auto N = 0>
+ template <auto N = 1>
147
constexpr bool end_is_empty() const {
148
- if constexpr (N == sizeof...(Vs))
+ if constexpr (N == 1 + sizeof...(Vs))
149
return false;
150
- if (const auto& v = std::get<N + 1>(bases_); ranges::empty(v))
+ if (const auto& v = std::get<N>(bases_); ranges::empty(v))
151
return true;
152
return end_is_empty<N + 1>();
153
0 commit comments