diff options
Diffstat (limited to 'libcxx/include/__functional/bind.h')
| -rw-r--r-- | libcxx/include/__functional/bind.h | 28 | 
1 files changed, 14 insertions, 14 deletions
| diff --git a/libcxx/include/__functional/bind.h b/libcxx/include/__functional/bind.h index d1cbbb3d916e..297e4e5103a3 100644 --- a/libcxx/include/__functional/bind.h +++ b/libcxx/include/__functional/bind.h @@ -25,9 +25,9 @@ _LIBCPP_BEGIN_NAMESPACE_STD  template<class _Tp>  struct is_bind_expression : _If< -    _IsSame<_Tp, __uncvref_t<_Tp> >::value, +    _IsSame<_Tp, __remove_cvref_t<_Tp> >::value,      false_type, -    is_bind_expression<__uncvref_t<_Tp> > +    is_bind_expression<__remove_cvref_t<_Tp> >  > {};  #if _LIBCPP_STD_VER > 14 @@ -37,9 +37,9 @@ inline constexpr size_t is_bind_expression_v = is_bind_expression<_Tp>::value;  template<class _Tp>  struct is_placeholder : _If< -    _IsSame<_Tp, __uncvref_t<_Tp> >::value, +    _IsSame<_Tp, __remove_cvref_t<_Tp> >::value,      integral_constant<int, 0>, -    is_placeholder<__uncvref_t<_Tp> > +    is_placeholder<__remove_cvref_t<_Tp> >  > {};  #if _LIBCPP_STD_VER > 14 @@ -279,16 +279,16 @@ public:                class = typename enable_if                                 <                                    is_constructible<_Fd, _Gp>::value && -                                  !is_same<typename remove_reference<_Gp>::type, +                                  !is_same<__libcpp_remove_reference_t<_Gp>,                                             __bind>::value                                 >::type> -      _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17 +      _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX20        explicit __bind(_Gp&& __f, _BA&& ...__bound_args)          : __f_(_VSTD::forward<_Gp>(__f)),            __bound_args_(_VSTD::forward<_BA>(__bound_args)...) {}      template <class ..._Args> -        _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17 +        _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX20          typename __bind_return<_Fd, _Td, tuple<_Args&&...> >::type          operator()(_Args&& ...__args)          { @@ -297,7 +297,7 @@ public:          }      template <class ..._Args> -        _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17 +        _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX20          typename __bind_return<const _Fd, const _Td, tuple<_Args&&...> >::type          operator()(_Args&& ...__args) const          { @@ -324,16 +324,16 @@ public:                class = typename enable_if                                 <                                    is_constructible<_Fd, _Gp>::value && -                                  !is_same<typename remove_reference<_Gp>::type, +                                  !is_same<__libcpp_remove_reference_t<_Gp>,                                             __bind_r>::value                                 >::type> -      _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17 +      _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX20        explicit __bind_r(_Gp&& __f, _BA&& ...__bound_args)          : base(_VSTD::forward<_Gp>(__f),                 _VSTD::forward<_BA>(__bound_args)...) {}      template <class ..._Args> -        _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17 +        _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX20          typename enable_if          <              is_convertible<typename __bind_return<_Fd, _Td, tuple<_Args&&...> >::type, @@ -347,7 +347,7 @@ public:          }      template <class ..._Args> -        _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17 +        _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX20          typename enable_if          <              is_convertible<typename __bind_return<const _Fd, const _Td, tuple<_Args&&...> >::type, @@ -365,7 +365,7 @@ template<class _Rp, class _Fp, class ..._BoundArgs>  struct is_bind_expression<__bind_r<_Rp, _Fp, _BoundArgs...> > : public true_type {};  template<class _Fp, class ..._BoundArgs> -inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17 +inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX20  __bind<_Fp, _BoundArgs...>  bind(_Fp&& __f, _BoundArgs&&... __bound_args)  { @@ -374,7 +374,7 @@ bind(_Fp&& __f, _BoundArgs&&... __bound_args)  }  template<class _Rp, class _Fp, class ..._BoundArgs> -inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17 +inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX20  __bind_r<_Rp, _Fp, _BoundArgs...>  bind(_Fp&& __f, _BoundArgs&&... __bound_args)  { | 
