@@ -52,12 +52,12 @@ __find(_Iter __first, _Sent __last, const _Tp& __value, _Proj& __proj) {
5252}
5353
5454// trivially equality comparable implementations
55- template <class _Tp ,
56- class _Up ,
57- class _Proj ,
58- __enable_if_t <__is_identity< _Proj>::value && __libcpp_is_trivially_equality_comparable<_Tp, _Up>::value &&
59- sizeof (_Tp) == 1 ,
60- int > = 0 >
55+ template <
56+ class _Tp ,
57+ class _Up ,
58+ class _Proj ,
59+ __enable_if_t <__is_identity<_Proj>::value && __is_trivially_equality_comparable_v<_Tp, _Up> && sizeof (_Tp) == 1 ,
60+ int > = 0 >
6161_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 _Tp* __find (_Tp* __first, _Tp* __last, const _Up& __value, _Proj&) {
6262 if (auto __ret = std::__constexpr_memchr (__first, __value, __last - __first))
6363 return __ret;
@@ -68,7 +68,7 @@ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 _Tp* __find(_Tp* __first, _T
6868template <class _Tp ,
6969 class _Up ,
7070 class _Proj ,
71- __enable_if_t <__is_identity<_Proj>::value && __libcpp_is_trivially_equality_comparable <_Tp, _Up>::value &&
71+ __enable_if_t <__is_identity<_Proj>::value && __is_trivially_equality_comparable_v <_Tp, _Up> &&
7272 sizeof (_Tp) == sizeof (wchar_t ) && _LIBCPP_ALIGNOF(_Tp) >= _LIBCPP_ALIGNOF(wchar_t ),
7373 int > = 0 >
7474_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 _Tp* __find (_Tp* __first, _Tp* __last, const _Up& __value, _Proj&) {
@@ -83,7 +83,7 @@ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 _Tp* __find(_Tp* __first, _T
8383template <class _Tp ,
8484 class _Up ,
8585 class _Proj ,
86- __enable_if_t <__is_identity<_Proj>::value && !__libcpp_is_trivially_equality_comparable <_Tp, _Up>::value &&
86+ __enable_if_t <__is_identity<_Proj>::value && !__is_trivially_equality_comparable_v <_Tp, _Up> &&
8787 is_integral<_Tp>::value && is_integral<_Up>::value &&
8888 is_signed<_Tp>::value == is_signed<_Up>::value,
8989 int > = 0 >
0 commit comments