Skip to content

Commit f4c8aba

Browse files
committed
[libcxx] removes unnecessary traits from has_unique_object_representations
`remove_cv_t` and `remove_all_extents_t` are taken care of by the built-in trait, so we don't need to use them directly.
1 parent f7a8a78 commit f4c8aba

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libcxx/include/__type_traits/has_unique_object_representation.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
#include <__config>
1313
#include <__type_traits/integral_constant.h>
14-
#include <__type_traits/remove_all_extents.h>
15-
#include <__type_traits/remove_cv.h>
1614

1715
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
1816
# pragma GCC system_header
@@ -24,7 +22,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
2422

2523
template <class _Tp>
2624
struct _LIBCPP_TEMPLATE_VIS has_unique_object_representations
27-
: public integral_constant<bool, __has_unique_object_representations(remove_cv_t<remove_all_extents_t<_Tp>>)> {};
25+
: public integral_constant<bool, __has_unique_object_representations(_Tp)> {};
2826

2927
template <class _Tp>
3028
inline constexpr bool has_unique_object_representations_v = has_unique_object_representations<_Tp>::value;

0 commit comments

Comments
 (0)