[libcxx-commits] [libcxx] 7bc10b9 - [libc++] Remove a few includes from pair.h (#114708)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Nov 4 05:01:58 PST 2024
Author: Nikolas Klauser
Date: 2024-11-04T14:01:54+01:00
New Revision: 7bc10b920aa9521765ac523fe7423fc4c2b21114
URL: https://github.com/llvm/llvm-project/commit/7bc10b920aa9521765ac523fe7423fc4c2b21114
DIFF: https://github.com/llvm/llvm-project/commit/7bc10b920aa9521765ac523fe7423fc4c2b21114.diff
LOG: [libc++] Remove a few includes from pair.h (#114708)
Added:
Modified:
libcxx/include/__utility/pair.h
Removed:
################################################################################
diff --git a/libcxx/include/__utility/pair.h b/libcxx/include/__utility/pair.h
index cca6490476db11..f9d0f4e4723113 100644
--- a/libcxx/include/__utility/pair.h
+++ b/libcxx/include/__utility/pair.h
@@ -17,8 +17,6 @@
#include <__fwd/array.h>
#include <__fwd/pair.h>
#include <__fwd/tuple.h>
-#include <__tuple/sfinae_helpers.h>
-#include <__tuple/tuple_element.h>
#include <__tuple/tuple_indices.h>
#include <__tuple/tuple_like_no_subrange.h>
#include <__tuple/tuple_size.h>
@@ -132,8 +130,7 @@ struct _LIBCPP_TEMPLATE_VIS pair
};
template <bool _MaybeEnable>
- using _CheckArgsDep _LIBCPP_NODEBUG =
- typename conditional< _MaybeEnable, _CheckArgs, __check_tuple_constructor_fail>::type;
+ using _CheckArgsDep _LIBCPP_NODEBUG = __conditional_t<_MaybeEnable, _CheckArgs, void>;
template <bool _Dummy = true, __enable_if_t<_CheckArgsDep<_Dummy>::__enable_default(), int> = 0>
explicit(!_CheckArgsDep<_Dummy>::__enable_implicit_default()) _LIBCPP_HIDE_FROM_ABI constexpr pair() noexcept(
More information about the libcxx-commits
mailing list