[libcxx-commits] [libcxx] [libc++] P1789R3: Library Support for Expansion Statements (PR #167184)

Matthias Wippich via libcxx-commits libcxx-commits at lists.llvm.org
Sun Dec 14 13:20:55 PST 2025


================
@@ -0,0 +1,54 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// REQUIRES: std-at-least-c++26
+
+// <utility>
+
+// template<size_t I, class T, T... Values>
+//   struct tuple_element<I, integer_sequence<T, Values...>>;
+// template<size_t I, class T, T... Values>
+//   struct tuple_element<I, const integer_sequence<T, Values...>>;
+// template<size_t I, class T, T... Values>
+//   constexpr T get(integer_sequence<T, Values...>) noexcept;
----------------
Tsche wrote:

Hm, `intseq.binding/binding.verify.cpp` seems rather repetitive and `general` doesn't tell me anything about that test either. They all belong to the `intseq.binding` section of the standard.

I chose `tuple_interface` for tests that use the tuple interface outside of structured bindings to distinguish from the `structured_binding` test that tests use in actual structured bindings. While the tuple interface is what enables use in structured bindings, I think it is meaningful to test these separately (especially wrt p2686 being only partially implemented at this point).

https://github.com/llvm/llvm-project/pull/167184


More information about the libcxx-commits mailing list