@@ -28,7 +28,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
2828// copy
2929
3030template <class _InIter , class _Sent , class _OutIter >
31- inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX11
31+ inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14
3232pair<_InIter, _OutIter> __copy_impl (_InIter __first, _Sent __last, _OutIter __result) {
3333 while (__first != __last) {
3434 *__result = *__first;
@@ -42,7 +42,7 @@ template <class _InValueT,
4242 class _OutValueT ,
4343 class = __enable_if_t <is_same<typename remove_const<_InValueT>::type, _OutValueT>::value
4444 && is_trivially_copy_assignable<_OutValueT>::value> >
45- inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX11
45+ inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14
4646pair<_InValueT*, _OutValueT*> __copy_impl (_InValueT* __first, _InValueT* __last, _OutValueT* __result) {
4747 if (__libcpp_is_constant_evaluated ()
4848// TODO: Remove this once GCC supports __builtin_memmove during constant evaluation
@@ -64,7 +64,7 @@ template <class _InIter, class _OutIter,
6464 && is_trivially_copy_assignable<__iter_value_type<_OutIter> >::value
6565 && __is_reverse_iterator<_InIter>::value
6666 && __is_reverse_iterator<_OutIter>::value, int > = 0 >
67- inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX11
67+ inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14
6868pair<_InIter, _OutIter>
6969__copy_impl (_InIter __first, _InIter __last, _OutIter __result) {
7070 auto __first_base = std::__unwrap_iter (__first.base ());
@@ -79,7 +79,7 @@ template <class _InIter, class _Sent, class _OutIter,
7979 __enable_if_t <!(is_copy_constructible<_InIter>::value
8080 && is_copy_constructible<_Sent>::value
8181 && is_copy_constructible<_OutIter>::value), int > = 0 >
82- inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX11
82+ inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14
8383pair<_InIter, _OutIter> __copy (_InIter __first, _Sent __last, _OutIter __result) {
8484 return std::__copy_impl (std::move (__first), std::move (__last), std::move (__result));
8585}
@@ -88,7 +88,7 @@ template <class _InIter, class _Sent, class _OutIter,
8888 __enable_if_t <is_copy_constructible<_InIter>::value
8989 && is_copy_constructible<_Sent>::value
9090 && is_copy_constructible<_OutIter>::value, int > = 0 >
91- inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX11
91+ inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14
9292pair<_InIter, _OutIter> __copy (_InIter __first, _Sent __last, _OutIter __result) {
9393 auto __range = std::__unwrap_range (__first, __last);
9494 auto __ret = std::__copy_impl (std::move (__range.first ), std::move (__range.second ), std::__unwrap_iter (__result));
@@ -97,7 +97,7 @@ pair<_InIter, _OutIter> __copy(_InIter __first, _Sent __last, _OutIter __result)
9797}
9898
9999template <class _InputIterator , class _OutputIterator >
100- inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
100+ inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX20
101101_OutputIterator
102102copy (_InputIterator __first, _InputIterator __last, _OutputIterator __result) {
103103 return std::__copy (__first, __last, __result).second ;
0 commit comments