diff options
Diffstat (limited to 'libcxx/include/__algorithm/search.h')
| -rw-r--r-- | libcxx/include/__algorithm/search.h | 18 | 
1 files changed, 8 insertions, 10 deletions
| diff --git a/libcxx/include/__algorithm/search.h b/libcxx/include/__algorithm/search.h index 4ead6cac82b7..93771be39e35 100644 --- a/libcxx/include/__algorithm/search.h +++ b/libcxx/include/__algorithm/search.h @@ -33,7 +33,7 @@ template <class _AlgPolicy,            class _Pred,            class _Proj1,            class _Proj2> -_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX11 +_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14  pair<_Iter1, _Iter1> __search_forward_impl(_Iter1 __first1, _Sent1 __last1,                                             _Iter2 __first2, _Sent2 __last2,                                             _Pred& __pred, @@ -80,7 +80,7 @@ template <class _AlgPolicy,            class _Proj2,            class _DiffT1,            class _DiffT2> -_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX11 +_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14  pair<_Iter1, _Iter1> __search_random_access_impl(_Iter1 __first1, _Sent1 __last1,                                                   _Iter2 __first2, _Sent2 __last2,                                                   _Pred& __pred, @@ -120,7 +120,7 @@ template <class _Iter1, class _Sent1,            class _Pred,            class _Proj1,            class _Proj2> -_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX11 +_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14  pair<_Iter1, _Iter1> __search_impl(_Iter1 __first1, _Sent1 __last1,                                     _Iter2 __first2, _Sent2 __last2,                                     _Pred& __pred, @@ -152,7 +152,7 @@ template <class _Iter1, class _Sent1,            class _Pred,            class _Proj1,            class _Proj2> -_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX11 +_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14  pair<_Iter1, _Iter1> __search_impl(_Iter1 __first1, _Sent1 __last1,                                     _Iter2 __first2, _Sent2 __last2,                                     _Pred& __pred, @@ -170,7 +170,7 @@ pair<_Iter1, _Iter1> __search_impl(_Iter1 __first1, _Sent1 __last1,  }  template <class _ForwardIterator1, class _ForwardIterator2, class _BinaryPredicate> -_LIBCPP_NODISCARD_EXT inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17 +_LIBCPP_NODISCARD_EXT inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX20  _ForwardIterator1 search(_ForwardIterator1 __first1, _ForwardIterator1 __last1,                           _ForwardIterator2 __first2, _ForwardIterator2 __last2,                           _BinaryPredicate __pred) { @@ -181,17 +181,15 @@ _ForwardIterator1 search(_ForwardIterator1 __first1, _ForwardIterator1 __last1,  }  template <class _ForwardIterator1, class _ForwardIterator2> -_LIBCPP_NODISCARD_EXT inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17 +_LIBCPP_NODISCARD_EXT inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX20  _ForwardIterator1 search(_ForwardIterator1 __first1, _ForwardIterator1 __last1,                           _ForwardIterator2 __first2, _ForwardIterator2 __last2) { -  using __v1 = typename iterator_traits<_ForwardIterator1>::value_type; -  using __v2 = typename iterator_traits<_ForwardIterator2>::value_type; -  return std::search(__first1, __last1, __first2, __last2, __equal_to<__v1, __v2>()); +  return std::search(__first1, __last1, __first2, __last2, __equal_to());  }  #if _LIBCPP_STD_VER > 14  template <class _ForwardIterator, class _Searcher> -_LIBCPP_NODISCARD_EXT _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17 _ForwardIterator +_LIBCPP_NODISCARD_EXT _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX20 _ForwardIterator  search(_ForwardIterator __f, _ForwardIterator __l, const _Searcher& __s) {    return __s(__f, __l).first;  } | 
