[libcxx-commits] [libcxx] [libc++][NFC] Remove __all_default_constructible (PR #150406)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jul 24 04:37:55 PDT 2025


https://github.com/philnik777 created https://github.com/llvm/llvm-project/pull/150406

`__all_default_constructible` is never used, so we can remove it.


>From 4e95459821bb7710b581a66946763ef56b88cf22 Mon Sep 17 00:00:00 2001
From: Nikolas Klauser <nikolasklauser at berlin.de>
Date: Thu, 24 Jul 2025 13:37:14 +0200
Subject: [PATCH] [libc++][NFC] Remove __all_default_constructible

---
 libcxx/include/tuple | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/libcxx/include/tuple b/libcxx/include/tuple
index 662d926ed35a2..1623702f7ebf6 100644
--- a/libcxx/include/tuple
+++ b/libcxx/include/tuple
@@ -443,12 +443,6 @@ public:
 template <class... _Tp>
 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 void __swallow(_Tp&&...) _NOEXCEPT {}
 
-template <class _Tp>
-struct __all_default_constructible;
-
-template <class... _Tp>
-struct __all_default_constructible<__tuple_types<_Tp...>> : __all<is_default_constructible<_Tp>::value...> {};
-
 // __tuple_impl
 
 template <class _Indx, class... _Tp>



More information about the libcxx-commits mailing list