[libcxx-commits] [libcxx] [libc++] Add __simple_tuple and replace a bunch of uses of tuple with it (PR #214566)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Wed Aug 19 11:11:44 PDT 2026


================
@@ -1843,9 +1845,9 @@ public:
   _LIBCPP_HIDE_FROM_ABI __async_func(__async_func&& __f) : __f_(std::move(__f.__f_)) {}
 
   _LIBCPP_HIDE_FROM_ABI _Rp operator()() {
-    return [&]<size_t... _Indices>(__index_sequence<_Indices...>) -> _Rp {
-      return std::__invoke(std::move(std::get<_Indices>(__f_))...);
-    }(__index_sequence_for<_Fp, _Args...>{});
+    return _TupleT::__apply(__f_, []<class... _LArgs>(_LArgs&&... __args) -> _Rp {
----------------
philnik777 wrote:

https://godbolt.org/z/88WP645zE

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


More information about the libcxx-commits mailing list