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

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jul 24 10:17:43 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libcxx

Author: Nikolas Klauser (philnik777)

<details>
<summary>Changes</summary>

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


---
Full diff: https://github.com/llvm/llvm-project/pull/150406.diff


1 Files Affected:

- (modified) libcxx/include/tuple (-6) 


``````````diff
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>

``````````

</details>


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


More information about the libcxx-commits mailing list