forked from OSchip/llvm-project
[libc++][NFC] Rename _EnableIf to __enable_if_t for consistency
In other places in the code, we use lowercase spelling for things that are not available in prior standards. Differential Revision: https://reviews.llvm.org/D109435
This commit is contained in:
parent
dea6f71af0
commit
b4e88d4db1
|
@ -97,7 +97,7 @@ __mu_expand(_Ti& __ti, tuple<_Uj...>& __uj, __tuple_indices<_Indx...>)
|
||||||
|
|
||||||
template <class _Ti, class ..._Uj>
|
template <class _Ti, class ..._Uj>
|
||||||
inline _LIBCPP_INLINE_VISIBILITY
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
typename _EnableIf
|
typename __enable_if_t
|
||||||
<
|
<
|
||||||
is_bind_expression<_Ti>::value,
|
is_bind_expression<_Ti>::value,
|
||||||
__invoke_of<_Ti&, _Uj...>
|
__invoke_of<_Ti&, _Uj...>
|
||||||
|
|
|
@ -46,7 +46,7 @@ public:
|
||||||
reference_wrapper(type& __f) _NOEXCEPT
|
reference_wrapper(type& __f) _NOEXCEPT
|
||||||
: __f_(_VSTD::addressof(__f)) {}
|
: __f_(_VSTD::addressof(__f)) {}
|
||||||
#else
|
#else
|
||||||
template <class _Up, class = _EnableIf<!__is_same_uncvref<_Up, reference_wrapper>::value, decltype(__fun(declval<_Up>())) >>
|
template <class _Up, class = __enable_if_t<!__is_same_uncvref<_Up, reference_wrapper>::value, decltype(__fun(declval<_Up>())) >>
|
||||||
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
|
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
|
||||||
reference_wrapper(_Up&& __u) _NOEXCEPT_(noexcept(__fun(declval<_Up>()))) {
|
reference_wrapper(_Up&& __u) _NOEXCEPT_(noexcept(__fun(declval<_Up>()))) {
|
||||||
type& __f = static_cast<_Up&&>(__u);
|
type& __f = static_cast<_Up&&>(__u);
|
||||||
|
|
|
@ -55,7 +55,7 @@ void __advance(_RandIter& __i, typename iterator_traits<_RandIter>::difference_t
|
||||||
template <
|
template <
|
||||||
class _InputIter, class _Distance,
|
class _InputIter, class _Distance,
|
||||||
class _IntegralDistance = decltype(_VSTD::__convert_to_integral(declval<_Distance>())),
|
class _IntegralDistance = decltype(_VSTD::__convert_to_integral(declval<_Distance>())),
|
||||||
class = _EnableIf<is_integral<_IntegralDistance>::value> >
|
class = __enable_if_t<is_integral<_IntegralDistance>::value> >
|
||||||
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX14
|
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX14
|
||||||
void advance(_InputIter& __i, _Distance __orig_n) {
|
void advance(_InputIter& __i, _Distance __orig_n) {
|
||||||
typedef typename iterator_traits<_InputIter>::difference_type _Difference;
|
typedef typename iterator_traits<_InputIter>::difference_type _Difference;
|
||||||
|
|
|
@ -76,7 +76,7 @@ struct __iter_concept_category_test {
|
||||||
};
|
};
|
||||||
struct __iter_concept_random_fallback {
|
struct __iter_concept_random_fallback {
|
||||||
template <class _Iter>
|
template <class _Iter>
|
||||||
using _Apply = _EnableIf<
|
using _Apply = __enable_if_t<
|
||||||
__is_primary_template<iterator_traits<_Iter> >::value,
|
__is_primary_template<iterator_traits<_Iter> >::value,
|
||||||
random_access_iterator_tag
|
random_access_iterator_tag
|
||||||
>;
|
>;
|
||||||
|
|
|
@ -54,13 +54,13 @@ public:
|
||||||
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
|
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
|
||||||
explicit move_iterator(_Iter __x) : __i(__x) {}
|
explicit move_iterator(_Iter __x) : __i(__x) {}
|
||||||
|
|
||||||
template <class _Up, class = _EnableIf<
|
template <class _Up, class = __enable_if_t<
|
||||||
!is_same<_Up, _Iter>::value && is_convertible<_Up const&, _Iter>::value
|
!is_same<_Up, _Iter>::value && is_convertible<_Up const&, _Iter>::value
|
||||||
> >
|
> >
|
||||||
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
|
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
|
||||||
move_iterator(const move_iterator<_Up>& __u) : __i(__u.base()) {}
|
move_iterator(const move_iterator<_Up>& __u) : __i(__u.base()) {}
|
||||||
|
|
||||||
template <class _Up, class = _EnableIf<
|
template <class _Up, class = __enable_if_t<
|
||||||
!is_same<_Up, _Iter>::value &&
|
!is_same<_Up, _Iter>::value &&
|
||||||
is_convertible<_Up const&, _Iter>::value &&
|
is_convertible<_Up const&, _Iter>::value &&
|
||||||
is_assignable<_Iter&, _Up const&>::value
|
is_assignable<_Iter&, _Up const&>::value
|
||||||
|
|
|
@ -75,7 +75,7 @@ public:
|
||||||
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
|
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
|
||||||
explicit reverse_iterator(_Iter __x) : __t(__x), current(__x) {}
|
explicit reverse_iterator(_Iter __x) : __t(__x), current(__x) {}
|
||||||
|
|
||||||
template <class _Up, class = _EnableIf<
|
template <class _Up, class = __enable_if_t<
|
||||||
!is_same<_Up, _Iter>::value && is_convertible<_Up const&, _Iter>::value
|
!is_same<_Up, _Iter>::value && is_convertible<_Up const&, _Iter>::value
|
||||||
> >
|
> >
|
||||||
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
|
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
|
||||||
|
@ -83,7 +83,7 @@ public:
|
||||||
: __t(__u.base()), current(__u.base())
|
: __t(__u.base()), current(__u.base())
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
template <class _Up, class = _EnableIf<
|
template <class _Up, class = __enable_if_t<
|
||||||
!is_same<_Up, _Iter>::value &&
|
!is_same<_Up, _Iter>::value &&
|
||||||
is_convertible<_Up const&, _Iter>::value &&
|
is_convertible<_Up const&, _Iter>::value &&
|
||||||
is_assignable<_Up const&, _Iter>::value
|
is_assignable<_Up const&, _Iter>::value
|
||||||
|
@ -100,7 +100,7 @@ public:
|
||||||
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
|
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
|
||||||
explicit reverse_iterator(_Iter __x) : current(__x) {}
|
explicit reverse_iterator(_Iter __x) : current(__x) {}
|
||||||
|
|
||||||
template <class _Up, class = _EnableIf<
|
template <class _Up, class = __enable_if_t<
|
||||||
!is_same<_Up, _Iter>::value && is_convertible<_Up const&, _Iter>::value
|
!is_same<_Up, _Iter>::value && is_convertible<_Up const&, _Iter>::value
|
||||||
> >
|
> >
|
||||||
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
|
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14
|
||||||
|
@ -108,7 +108,7 @@ public:
|
||||||
: current(__u.base())
|
: current(__u.base())
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
template <class _Up, class = _EnableIf<
|
template <class _Up, class = __enable_if_t<
|
||||||
!is_same<_Up, _Iter>::value &&
|
!is_same<_Up, _Iter>::value &&
|
||||||
is_convertible<_Up const&, _Iter>::value &&
|
is_convertible<_Up const&, _Iter>::value &&
|
||||||
is_assignable<_Up const&, _Iter>::value
|
is_assignable<_Up const&, _Iter>::value
|
||||||
|
|
|
@ -263,7 +263,7 @@ struct _LIBCPP_TEMPLATE_VIS allocator_traits
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class _Ap = _Alloc, class =
|
template <class _Ap = _Alloc, class =
|
||||||
_EnableIf<__has_allocate_hint<_Ap, size_type, const_void_pointer>::value> >
|
__enable_if_t<__has_allocate_hint<_Ap, size_type, const_void_pointer>::value> >
|
||||||
_LIBCPP_NODISCARD_AFTER_CXX17 _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
|
_LIBCPP_NODISCARD_AFTER_CXX17 _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
|
||||||
static pointer allocate(allocator_type& __a, size_type __n, const_void_pointer __hint) {
|
static pointer allocate(allocator_type& __a, size_type __n, const_void_pointer __hint) {
|
||||||
_LIBCPP_SUPPRESS_DEPRECATED_PUSH
|
_LIBCPP_SUPPRESS_DEPRECATED_PUSH
|
||||||
|
@ -271,7 +271,7 @@ struct _LIBCPP_TEMPLATE_VIS allocator_traits
|
||||||
_LIBCPP_SUPPRESS_DEPRECATED_POP
|
_LIBCPP_SUPPRESS_DEPRECATED_POP
|
||||||
}
|
}
|
||||||
template <class _Ap = _Alloc, class = void, class =
|
template <class _Ap = _Alloc, class = void, class =
|
||||||
_EnableIf<!__has_allocate_hint<_Ap, size_type, const_void_pointer>::value> >
|
__enable_if_t<!__has_allocate_hint<_Ap, size_type, const_void_pointer>::value> >
|
||||||
_LIBCPP_NODISCARD_AFTER_CXX17 _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
|
_LIBCPP_NODISCARD_AFTER_CXX17 _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
|
||||||
static pointer allocate(allocator_type& __a, size_type __n, const_void_pointer) {
|
static pointer allocate(allocator_type& __a, size_type __n, const_void_pointer) {
|
||||||
return __a.allocate(__n);
|
return __a.allocate(__n);
|
||||||
|
@ -283,7 +283,7 @@ struct _LIBCPP_TEMPLATE_VIS allocator_traits
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class _Tp, class... _Args, class =
|
template <class _Tp, class... _Args, class =
|
||||||
_EnableIf<__has_construct<allocator_type, _Tp*, _Args...>::value> >
|
__enable_if_t<__has_construct<allocator_type, _Tp*, _Args...>::value> >
|
||||||
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
|
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
|
||||||
static void construct(allocator_type& __a, _Tp* __p, _Args&&... __args) {
|
static void construct(allocator_type& __a, _Tp* __p, _Args&&... __args) {
|
||||||
_LIBCPP_SUPPRESS_DEPRECATED_PUSH
|
_LIBCPP_SUPPRESS_DEPRECATED_PUSH
|
||||||
|
@ -291,7 +291,7 @@ struct _LIBCPP_TEMPLATE_VIS allocator_traits
|
||||||
_LIBCPP_SUPPRESS_DEPRECATED_POP
|
_LIBCPP_SUPPRESS_DEPRECATED_POP
|
||||||
}
|
}
|
||||||
template <class _Tp, class... _Args, class = void, class =
|
template <class _Tp, class... _Args, class = void, class =
|
||||||
_EnableIf<!__has_construct<allocator_type, _Tp*, _Args...>::value> >
|
__enable_if_t<!__has_construct<allocator_type, _Tp*, _Args...>::value> >
|
||||||
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
|
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
|
||||||
static void construct(allocator_type&, _Tp* __p, _Args&&... __args) {
|
static void construct(allocator_type&, _Tp* __p, _Args&&... __args) {
|
||||||
#if _LIBCPP_STD_VER > 17
|
#if _LIBCPP_STD_VER > 17
|
||||||
|
@ -302,7 +302,7 @@ struct _LIBCPP_TEMPLATE_VIS allocator_traits
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class _Tp, class =
|
template <class _Tp, class =
|
||||||
_EnableIf<__has_destroy<allocator_type, _Tp*>::value> >
|
__enable_if_t<__has_destroy<allocator_type, _Tp*>::value> >
|
||||||
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
|
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
|
||||||
static void destroy(allocator_type& __a, _Tp* __p) {
|
static void destroy(allocator_type& __a, _Tp* __p) {
|
||||||
_LIBCPP_SUPPRESS_DEPRECATED_PUSH
|
_LIBCPP_SUPPRESS_DEPRECATED_PUSH
|
||||||
|
@ -310,7 +310,7 @@ struct _LIBCPP_TEMPLATE_VIS allocator_traits
|
||||||
_LIBCPP_SUPPRESS_DEPRECATED_POP
|
_LIBCPP_SUPPRESS_DEPRECATED_POP
|
||||||
}
|
}
|
||||||
template <class _Tp, class = void, class =
|
template <class _Tp, class = void, class =
|
||||||
_EnableIf<!__has_destroy<allocator_type, _Tp*>::value> >
|
__enable_if_t<!__has_destroy<allocator_type, _Tp*>::value> >
|
||||||
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
|
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
|
||||||
static void destroy(allocator_type&, _Tp* __p) {
|
static void destroy(allocator_type&, _Tp* __p) {
|
||||||
#if _LIBCPP_STD_VER > 17
|
#if _LIBCPP_STD_VER > 17
|
||||||
|
@ -321,7 +321,7 @@ struct _LIBCPP_TEMPLATE_VIS allocator_traits
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class _Ap = _Alloc, class =
|
template <class _Ap = _Alloc, class =
|
||||||
_EnableIf<__has_max_size<const _Ap>::value> >
|
__enable_if_t<__has_max_size<const _Ap>::value> >
|
||||||
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
|
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
|
||||||
static size_type max_size(const allocator_type& __a) _NOEXCEPT {
|
static size_type max_size(const allocator_type& __a) _NOEXCEPT {
|
||||||
_LIBCPP_SUPPRESS_DEPRECATED_PUSH
|
_LIBCPP_SUPPRESS_DEPRECATED_PUSH
|
||||||
|
@ -329,20 +329,20 @@ struct _LIBCPP_TEMPLATE_VIS allocator_traits
|
||||||
_LIBCPP_SUPPRESS_DEPRECATED_POP
|
_LIBCPP_SUPPRESS_DEPRECATED_POP
|
||||||
}
|
}
|
||||||
template <class _Ap = _Alloc, class = void, class =
|
template <class _Ap = _Alloc, class = void, class =
|
||||||
_EnableIf<!__has_max_size<const _Ap>::value> >
|
__enable_if_t<!__has_max_size<const _Ap>::value> >
|
||||||
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
|
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
|
||||||
static size_type max_size(const allocator_type&) _NOEXCEPT {
|
static size_type max_size(const allocator_type&) _NOEXCEPT {
|
||||||
return numeric_limits<size_type>::max() / sizeof(value_type);
|
return numeric_limits<size_type>::max() / sizeof(value_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class _Ap = _Alloc, class =
|
template <class _Ap = _Alloc, class =
|
||||||
_EnableIf<__has_select_on_container_copy_construction<const _Ap>::value> >
|
__enable_if_t<__has_select_on_container_copy_construction<const _Ap>::value> >
|
||||||
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
|
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
|
||||||
static allocator_type select_on_container_copy_construction(const allocator_type& __a) {
|
static allocator_type select_on_container_copy_construction(const allocator_type& __a) {
|
||||||
return __a.select_on_container_copy_construction();
|
return __a.select_on_container_copy_construction();
|
||||||
}
|
}
|
||||||
template <class _Ap = _Alloc, class = void, class =
|
template <class _Ap = _Alloc, class = void, class =
|
||||||
_EnableIf<!__has_select_on_container_copy_construction<const _Ap>::value> >
|
__enable_if_t<!__has_select_on_container_copy_construction<const _Ap>::value> >
|
||||||
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
|
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
|
||||||
static allocator_type select_on_container_copy_construction(const allocator_type& __a) {
|
static allocator_type select_on_container_copy_construction(const allocator_type& __a) {
|
||||||
return __a;
|
return __a;
|
||||||
|
@ -374,7 +374,7 @@ struct __is_cpp17_move_insertable
|
||||||
{ };
|
{ };
|
||||||
|
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
struct __is_cpp17_move_insertable<_Alloc, _EnableIf<
|
struct __is_cpp17_move_insertable<_Alloc, __enable_if_t<
|
||||||
!__is_default_allocator<_Alloc>::value &&
|
!__is_default_allocator<_Alloc>::value &&
|
||||||
__has_construct<_Alloc, typename _Alloc::value_type*, typename _Alloc::value_type&&>::value
|
__has_construct<_Alloc, typename _Alloc::value_type*, typename _Alloc::value_type&&>::value
|
||||||
> > : true_type { };
|
> > : true_type { };
|
||||||
|
@ -389,7 +389,7 @@ struct __is_cpp17_copy_insertable
|
||||||
{ };
|
{ };
|
||||||
|
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
struct __is_cpp17_copy_insertable<_Alloc, _EnableIf<
|
struct __is_cpp17_copy_insertable<_Alloc, __enable_if_t<
|
||||||
!__is_default_allocator<_Alloc>::value &&
|
!__is_default_allocator<_Alloc>::value &&
|
||||||
__has_construct<_Alloc, typename _Alloc::value_type*, const typename _Alloc::value_type&>::value
|
__has_construct<_Alloc, typename _Alloc::value_type*, const typename _Alloc::value_type&>::value
|
||||||
> >
|
> >
|
||||||
|
|
|
@ -173,7 +173,7 @@ _Tp* __to_address(_Tp* __p) _NOEXCEPT {
|
||||||
}
|
}
|
||||||
|
|
||||||
// enable_if is needed here to avoid instantiating checks for fancy pointers on raw pointers
|
// enable_if is needed here to avoid instantiating checks for fancy pointers on raw pointers
|
||||||
template <class _Pointer, class = _EnableIf<
|
template <class _Pointer, class = __enable_if_t<
|
||||||
!is_pointer<_Pointer>::value && !is_array<_Pointer>::value && !is_function<_Pointer>::value
|
!is_pointer<_Pointer>::value && !is_array<_Pointer>::value && !is_function<_Pointer>::value
|
||||||
> >
|
> >
|
||||||
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR
|
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR
|
||||||
|
|
|
@ -437,7 +437,7 @@ public:
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
_LIBCPP_CONSTEXPR shared_ptr(nullptr_t) _NOEXCEPT;
|
_LIBCPP_CONSTEXPR shared_ptr(nullptr_t) _NOEXCEPT;
|
||||||
|
|
||||||
template<class _Yp, class = _EnableIf<
|
template<class _Yp, class = __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
__compatible_with<_Yp, _Tp>
|
__compatible_with<_Yp, _Tp>
|
||||||
// In C++03 we get errors when trying to do SFINAE with the
|
// In C++03 we get errors when trying to do SFINAE with the
|
||||||
|
@ -1093,7 +1093,7 @@ shared_ptr<_Tp>::reset(_Yp* __p, _Dp __d, _Alloc __a)
|
||||||
//
|
//
|
||||||
// std::allocate_shared and std::make_shared
|
// std::allocate_shared and std::make_shared
|
||||||
//
|
//
|
||||||
template<class _Tp, class _Alloc, class ..._Args, class = _EnableIf<!is_array<_Tp>::value> >
|
template<class _Tp, class _Alloc, class ..._Args, class = __enable_if_t<!is_array<_Tp>::value> >
|
||||||
_LIBCPP_HIDE_FROM_ABI
|
_LIBCPP_HIDE_FROM_ABI
|
||||||
shared_ptr<_Tp> allocate_shared(const _Alloc& __a, _Args&& ...__args)
|
shared_ptr<_Tp> allocate_shared(const _Alloc& __a, _Args&& ...__args)
|
||||||
{
|
{
|
||||||
|
@ -1105,7 +1105,7 @@ shared_ptr<_Tp> allocate_shared(const _Alloc& __a, _Args&& ...__args)
|
||||||
return shared_ptr<_Tp>::__create_with_control_block((*__control_block).__get_elem(), _VSTD::addressof(*__control_block));
|
return shared_ptr<_Tp>::__create_with_control_block((*__control_block).__get_elem(), _VSTD::addressof(*__control_block));
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class _Tp, class ..._Args, class = _EnableIf<!is_array<_Tp>::value> >
|
template<class _Tp, class ..._Args, class = __enable_if_t<!is_array<_Tp>::value> >
|
||||||
_LIBCPP_HIDE_FROM_ABI
|
_LIBCPP_HIDE_FROM_ABI
|
||||||
shared_ptr<_Tp> make_shared(_Args&& ...__args)
|
shared_ptr<_Tp> make_shared(_Args&& ...__args)
|
||||||
{
|
{
|
||||||
|
|
|
@ -679,7 +679,7 @@ public:
|
||||||
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR bitset() _NOEXCEPT {}
|
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR bitset() _NOEXCEPT {}
|
||||||
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR
|
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR
|
||||||
bitset(unsigned long long __v) _NOEXCEPT : base(__v) {}
|
bitset(unsigned long long __v) _NOEXCEPT : base(__v) {}
|
||||||
template<class _CharT, class = _EnableIf<_IsCharLikeType<_CharT>::value> >
|
template<class _CharT, class = __enable_if_t<_IsCharLikeType<_CharT>::value> >
|
||||||
explicit bitset(const _CharT* __str,
|
explicit bitset(const _CharT* __str,
|
||||||
typename basic_string<_CharT>::size_type __n = basic_string<_CharT>::npos,
|
typename basic_string<_CharT>::size_type __n = basic_string<_CharT>::npos,
|
||||||
_CharT __zero = _CharT('0'), _CharT __one = _CharT('1'));
|
_CharT __zero = _CharT('0'), _CharT __one = _CharT('1'));
|
||||||
|
|
|
@ -831,7 +831,7 @@ inline _LIBCPP_INLINE_VISIBILITY long double atan2(long double __lcpp_y, long do
|
||||||
|
|
||||||
template <class _A1, class _A2>
|
template <class _A1, class _A2>
|
||||||
inline _LIBCPP_INLINE_VISIBILITY
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
typename std::_EnableIf
|
typename std::__enable_if_t
|
||||||
<
|
<
|
||||||
std::is_arithmetic<_A1>::value &&
|
std::is_arithmetic<_A1>::value &&
|
||||||
std::is_arithmetic<_A2>::value,
|
std::is_arithmetic<_A2>::value,
|
||||||
|
@ -926,7 +926,7 @@ inline _LIBCPP_INLINE_VISIBILITY long double fmod(long double __lcpp_x, long dou
|
||||||
|
|
||||||
template <class _A1, class _A2>
|
template <class _A1, class _A2>
|
||||||
inline _LIBCPP_INLINE_VISIBILITY
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
typename std::_EnableIf
|
typename std::__enable_if_t
|
||||||
<
|
<
|
||||||
std::is_arithmetic<_A1>::value &&
|
std::is_arithmetic<_A1>::value &&
|
||||||
std::is_arithmetic<_A2>::value,
|
std::is_arithmetic<_A2>::value,
|
||||||
|
@ -1004,7 +1004,7 @@ inline _LIBCPP_INLINE_VISIBILITY long double pow(long double __lcpp_x, long doub
|
||||||
|
|
||||||
template <class _A1, class _A2>
|
template <class _A1, class _A2>
|
||||||
inline _LIBCPP_INLINE_VISIBILITY
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
typename std::_EnableIf
|
typename std::__enable_if_t
|
||||||
<
|
<
|
||||||
std::is_arithmetic<_A1>::value &&
|
std::is_arithmetic<_A1>::value &&
|
||||||
std::is_arithmetic<_A2>::value,
|
std::is_arithmetic<_A2>::value,
|
||||||
|
@ -1158,7 +1158,7 @@ template <class _A1, class _A2>
|
||||||
_LIBCPP_CONSTEXPR
|
_LIBCPP_CONSTEXPR
|
||||||
#endif
|
#endif
|
||||||
inline _LIBCPP_INLINE_VISIBILITY
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
typename std::_EnableIf
|
typename std::__enable_if_t
|
||||||
<
|
<
|
||||||
std::is_arithmetic<_A1>::value &&
|
std::is_arithmetic<_A1>::value &&
|
||||||
std::is_arithmetic<_A2>::value,
|
std::is_arithmetic<_A2>::value,
|
||||||
|
@ -1185,7 +1185,7 @@ inline _LIBCPP_INLINE_VISIBILITY long double copysign(long double __lcpp_x, long
|
||||||
|
|
||||||
template <class _A1, class _A2>
|
template <class _A1, class _A2>
|
||||||
inline _LIBCPP_INLINE_VISIBILITY
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
typename std::_EnableIf
|
typename std::__enable_if_t
|
||||||
<
|
<
|
||||||
std::is_arithmetic<_A1>::value &&
|
std::is_arithmetic<_A1>::value &&
|
||||||
std::is_arithmetic<_A2>::value,
|
std::is_arithmetic<_A2>::value,
|
||||||
|
@ -1242,7 +1242,7 @@ inline _LIBCPP_INLINE_VISIBILITY long double fdim(long double __lcpp_x, long dou
|
||||||
|
|
||||||
template <class _A1, class _A2>
|
template <class _A1, class _A2>
|
||||||
inline _LIBCPP_INLINE_VISIBILITY
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
typename std::_EnableIf
|
typename std::__enable_if_t
|
||||||
<
|
<
|
||||||
std::is_arithmetic<_A1>::value &&
|
std::is_arithmetic<_A1>::value &&
|
||||||
std::is_arithmetic<_A2>::value,
|
std::is_arithmetic<_A2>::value,
|
||||||
|
@ -1277,7 +1277,7 @@ inline _LIBCPP_INLINE_VISIBILITY long double fma(long double __lcpp_x, long doub
|
||||||
|
|
||||||
template <class _A1, class _A2, class _A3>
|
template <class _A1, class _A2, class _A3>
|
||||||
inline _LIBCPP_INLINE_VISIBILITY
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
typename std::_EnableIf
|
typename std::__enable_if_t
|
||||||
<
|
<
|
||||||
std::is_arithmetic<_A1>::value &&
|
std::is_arithmetic<_A1>::value &&
|
||||||
std::is_arithmetic<_A2>::value &&
|
std::is_arithmetic<_A2>::value &&
|
||||||
|
@ -1304,7 +1304,7 @@ inline _LIBCPP_INLINE_VISIBILITY long double fmax(long double __lcpp_x, long dou
|
||||||
|
|
||||||
template <class _A1, class _A2>
|
template <class _A1, class _A2>
|
||||||
inline _LIBCPP_INLINE_VISIBILITY
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
typename std::_EnableIf
|
typename std::__enable_if_t
|
||||||
<
|
<
|
||||||
std::is_arithmetic<_A1>::value &&
|
std::is_arithmetic<_A1>::value &&
|
||||||
std::is_arithmetic<_A2>::value,
|
std::is_arithmetic<_A2>::value,
|
||||||
|
@ -1325,7 +1325,7 @@ inline _LIBCPP_INLINE_VISIBILITY long double fmin(long double __lcpp_x, long dou
|
||||||
|
|
||||||
template <class _A1, class _A2>
|
template <class _A1, class _A2>
|
||||||
inline _LIBCPP_INLINE_VISIBILITY
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
typename std::_EnableIf
|
typename std::__enable_if_t
|
||||||
<
|
<
|
||||||
std::is_arithmetic<_A1>::value &&
|
std::is_arithmetic<_A1>::value &&
|
||||||
std::is_arithmetic<_A2>::value,
|
std::is_arithmetic<_A2>::value,
|
||||||
|
@ -1346,7 +1346,7 @@ inline _LIBCPP_INLINE_VISIBILITY long double hypot(long double __lcpp_x, long do
|
||||||
|
|
||||||
template <class _A1, class _A2>
|
template <class _A1, class _A2>
|
||||||
inline _LIBCPP_INLINE_VISIBILITY
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
typename std::_EnableIf
|
typename std::__enable_if_t
|
||||||
<
|
<
|
||||||
std::is_arithmetic<_A1>::value &&
|
std::is_arithmetic<_A1>::value &&
|
||||||
std::is_arithmetic<_A2>::value,
|
std::is_arithmetic<_A2>::value,
|
||||||
|
@ -1553,7 +1553,7 @@ inline _LIBCPP_INLINE_VISIBILITY long double nextafter(long double __lcpp_x, lon
|
||||||
|
|
||||||
template <class _A1, class _A2>
|
template <class _A1, class _A2>
|
||||||
inline _LIBCPP_INLINE_VISIBILITY
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
typename std::_EnableIf
|
typename std::__enable_if_t
|
||||||
<
|
<
|
||||||
std::is_arithmetic<_A1>::value &&
|
std::is_arithmetic<_A1>::value &&
|
||||||
std::is_arithmetic<_A2>::value,
|
std::is_arithmetic<_A2>::value,
|
||||||
|
@ -1584,7 +1584,7 @@ inline _LIBCPP_INLINE_VISIBILITY long double remainder(long double __lcpp_x, lon
|
||||||
|
|
||||||
template <class _A1, class _A2>
|
template <class _A1, class _A2>
|
||||||
inline _LIBCPP_INLINE_VISIBILITY
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
typename std::_EnableIf
|
typename std::__enable_if_t
|
||||||
<
|
<
|
||||||
std::is_arithmetic<_A1>::value &&
|
std::is_arithmetic<_A1>::value &&
|
||||||
std::is_arithmetic<_A2>::value,
|
std::is_arithmetic<_A2>::value,
|
||||||
|
@ -1605,7 +1605,7 @@ inline _LIBCPP_INLINE_VISIBILITY long double remquo(long double __lcpp_x, long d
|
||||||
|
|
||||||
template <class _A1, class _A2>
|
template <class _A1, class _A2>
|
||||||
inline _LIBCPP_INLINE_VISIBILITY
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
typename std::_EnableIf
|
typename std::__enable_if_t
|
||||||
<
|
<
|
||||||
std::is_arithmetic<_A1>::value &&
|
std::is_arithmetic<_A1>::value &&
|
||||||
std::is_arithmetic<_A2>::value,
|
std::is_arithmetic<_A2>::value,
|
||||||
|
|
|
@ -279,28 +279,28 @@ public:
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
explicit queue(const _Alloc& __a,
|
explicit queue(const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>* = 0)
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0)
|
||||||
: c(__a) {}
|
: c(__a) {}
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
queue(const queue& __q, const _Alloc& __a,
|
queue(const queue& __q, const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>* = 0)
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0)
|
||||||
: c(__q.c, __a) {}
|
: c(__q.c, __a) {}
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
queue(const container_type& __c, const _Alloc& __a,
|
queue(const container_type& __c, const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>* = 0)
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0)
|
||||||
: c(__c, __a) {}
|
: c(__c, __a) {}
|
||||||
#ifndef _LIBCPP_CXX03_LANG
|
#ifndef _LIBCPP_CXX03_LANG
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
queue(container_type&& __c, const _Alloc& __a,
|
queue(container_type&& __c, const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>* = 0)
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0)
|
||||||
: c(_VSTD::move(__c), __a) {}
|
: c(_VSTD::move(__c), __a) {}
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
queue(queue&& __q, const _Alloc& __a,
|
queue(queue&& __q, const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>* = 0)
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0)
|
||||||
: c(_VSTD::move(__q.c), __a) {}
|
: c(_VSTD::move(__q.c), __a) {}
|
||||||
|
|
||||||
#endif // _LIBCPP_CXX03_LANG
|
#endif // _LIBCPP_CXX03_LANG
|
||||||
|
@ -424,7 +424,7 @@ operator<=(const queue<_Tp, _Container>& __x,const queue<_Tp, _Container>& __y)
|
||||||
|
|
||||||
template <class _Tp, class _Container>
|
template <class _Tp, class _Container>
|
||||||
inline _LIBCPP_INLINE_VISIBILITY
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
_EnableIf<__is_swappable<_Container>::value, void>
|
__enable_if_t<__is_swappable<_Container>::value, void>
|
||||||
swap(queue<_Tp, _Container>& __x, queue<_Tp, _Container>& __y)
|
swap(queue<_Tp, _Container>& __x, queue<_Tp, _Container>& __y)
|
||||||
_NOEXCEPT_(_NOEXCEPT_(__x.swap(__y)))
|
_NOEXCEPT_(_NOEXCEPT_(__x.swap(__y)))
|
||||||
{
|
{
|
||||||
|
@ -491,16 +491,16 @@ public:
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
priority_queue(const value_compare& __comp, container_type&& __c);
|
priority_queue(const value_compare& __comp, container_type&& __c);
|
||||||
#endif
|
#endif
|
||||||
template <class _InputIter, class = _EnableIf<__is_cpp17_input_iterator<_InputIter>::value> >
|
template <class _InputIter, class = __enable_if_t<__is_cpp17_input_iterator<_InputIter>::value> >
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
priority_queue(_InputIter __f, _InputIter __l,
|
priority_queue(_InputIter __f, _InputIter __l,
|
||||||
const value_compare& __comp = value_compare());
|
const value_compare& __comp = value_compare());
|
||||||
template <class _InputIter, class = _EnableIf<__is_cpp17_input_iterator<_InputIter>::value> >
|
template <class _InputIter, class = __enable_if_t<__is_cpp17_input_iterator<_InputIter>::value> >
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
priority_queue(_InputIter __f, _InputIter __l,
|
priority_queue(_InputIter __f, _InputIter __l,
|
||||||
const value_compare& __comp, const container_type& __c);
|
const value_compare& __comp, const container_type& __c);
|
||||||
#ifndef _LIBCPP_CXX03_LANG
|
#ifndef _LIBCPP_CXX03_LANG
|
||||||
template <class _InputIter, class = _EnableIf<__is_cpp17_input_iterator<_InputIter>::value> >
|
template <class _InputIter, class = __enable_if_t<__is_cpp17_input_iterator<_InputIter>::value> >
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
priority_queue(_InputIter __f, _InputIter __l,
|
priority_queue(_InputIter __f, _InputIter __l,
|
||||||
const value_compare& __comp, container_type&& __c);
|
const value_compare& __comp, container_type&& __c);
|
||||||
|
@ -508,55 +508,55 @@ public:
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
explicit priority_queue(const _Alloc& __a,
|
explicit priority_queue(const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>* = 0);
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0);
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
priority_queue(const value_compare& __comp, const _Alloc& __a,
|
priority_queue(const value_compare& __comp, const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>* = 0);
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0);
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
priority_queue(const value_compare& __comp, const container_type& __c,
|
priority_queue(const value_compare& __comp, const container_type& __c,
|
||||||
const _Alloc& __a,
|
const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>* = 0);
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0);
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
priority_queue(const priority_queue& __q, const _Alloc& __a,
|
priority_queue(const priority_queue& __q, const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>* = 0);
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0);
|
||||||
#ifndef _LIBCPP_CXX03_LANG
|
#ifndef _LIBCPP_CXX03_LANG
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
priority_queue(const value_compare& __comp, container_type&& __c,
|
priority_queue(const value_compare& __comp, container_type&& __c,
|
||||||
const _Alloc& __a,
|
const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>* = 0);
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0);
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
priority_queue(priority_queue&& __q, const _Alloc& __a,
|
priority_queue(priority_queue&& __q, const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>* = 0);
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0);
|
||||||
#endif // _LIBCPP_CXX03_LANG
|
#endif // _LIBCPP_CXX03_LANG
|
||||||
|
|
||||||
template <class _InputIter, class _Alloc, class = _EnableIf<__is_cpp17_input_iterator<_InputIter>::value> >
|
template <class _InputIter, class _Alloc, class = __enable_if_t<__is_cpp17_input_iterator<_InputIter>::value> >
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
priority_queue(_InputIter __f, _InputIter __l, const _Alloc& __a,
|
priority_queue(_InputIter __f, _InputIter __l, const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>* = 0);
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0);
|
||||||
|
|
||||||
template <class _InputIter, class _Alloc, class = _EnableIf<__is_cpp17_input_iterator<_InputIter>::value> >
|
template <class _InputIter, class _Alloc, class = __enable_if_t<__is_cpp17_input_iterator<_InputIter>::value> >
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
priority_queue(_InputIter __f, _InputIter __l,
|
priority_queue(_InputIter __f, _InputIter __l,
|
||||||
const value_compare& __comp, const _Alloc& __a,
|
const value_compare& __comp, const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>* = 0);
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0);
|
||||||
|
|
||||||
template <class _InputIter, class _Alloc, class = _EnableIf<__is_cpp17_input_iterator<_InputIter>::value> >
|
template <class _InputIter, class _Alloc, class = __enable_if_t<__is_cpp17_input_iterator<_InputIter>::value> >
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
priority_queue(_InputIter __f, _InputIter __l,
|
priority_queue(_InputIter __f, _InputIter __l,
|
||||||
const value_compare& __comp, const container_type& __c, const _Alloc& __a,
|
const value_compare& __comp, const container_type& __c, const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>* = 0);
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0);
|
||||||
|
|
||||||
#ifndef _LIBCPP_CXX03_LANG
|
#ifndef _LIBCPP_CXX03_LANG
|
||||||
template <class _InputIter, class _Alloc, class = _EnableIf<__is_cpp17_input_iterator<_InputIter>::value> >
|
template <class _InputIter, class _Alloc, class = __enable_if_t<__is_cpp17_input_iterator<_InputIter>::value> >
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
priority_queue(_InputIter __f, _InputIter __l,
|
priority_queue(_InputIter __f, _InputIter __l,
|
||||||
const value_compare& __comp, container_type&& __c, const _Alloc& __a,
|
const value_compare& __comp, container_type&& __c, const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>* = 0);
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0);
|
||||||
#endif // _LIBCPP_CXX03_LANG
|
#endif // _LIBCPP_CXX03_LANG
|
||||||
|
|
||||||
_LIBCPP_NODISCARD_AFTER_CXX17 _LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_NODISCARD_AFTER_CXX17 _LIBCPP_INLINE_VISIBILITY
|
||||||
|
@ -710,7 +710,7 @@ template <class _Tp, class _Container, class _Compare>
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
inline
|
inline
|
||||||
priority_queue<_Tp, _Container, _Compare>::priority_queue(const _Alloc& __a,
|
priority_queue<_Tp, _Container, _Compare>::priority_queue(const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>*)
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>*)
|
||||||
: c(__a)
|
: c(__a)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -720,7 +720,7 @@ template <class _Alloc>
|
||||||
inline
|
inline
|
||||||
priority_queue<_Tp, _Container, _Compare>::priority_queue(const value_compare& __comp,
|
priority_queue<_Tp, _Container, _Compare>::priority_queue(const value_compare& __comp,
|
||||||
const _Alloc& __a,
|
const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>*)
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>*)
|
||||||
: c(__a),
|
: c(__a),
|
||||||
comp(__comp)
|
comp(__comp)
|
||||||
{
|
{
|
||||||
|
@ -732,7 +732,7 @@ inline
|
||||||
priority_queue<_Tp, _Container, _Compare>::priority_queue(const value_compare& __comp,
|
priority_queue<_Tp, _Container, _Compare>::priority_queue(const value_compare& __comp,
|
||||||
const container_type& __c,
|
const container_type& __c,
|
||||||
const _Alloc& __a,
|
const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>*)
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>*)
|
||||||
: c(__c, __a),
|
: c(__c, __a),
|
||||||
comp(__comp)
|
comp(__comp)
|
||||||
{
|
{
|
||||||
|
@ -744,7 +744,7 @@ template <class _Alloc>
|
||||||
inline
|
inline
|
||||||
priority_queue<_Tp, _Container, _Compare>::priority_queue(const priority_queue& __q,
|
priority_queue<_Tp, _Container, _Compare>::priority_queue(const priority_queue& __q,
|
||||||
const _Alloc& __a,
|
const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>*)
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>*)
|
||||||
: c(__q.c, __a),
|
: c(__q.c, __a),
|
||||||
comp(__q.comp)
|
comp(__q.comp)
|
||||||
{
|
{
|
||||||
|
@ -758,7 +758,7 @@ inline
|
||||||
priority_queue<_Tp, _Container, _Compare>::priority_queue(const value_compare& __comp,
|
priority_queue<_Tp, _Container, _Compare>::priority_queue(const value_compare& __comp,
|
||||||
container_type&& __c,
|
container_type&& __c,
|
||||||
const _Alloc& __a,
|
const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>*)
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>*)
|
||||||
: c(_VSTD::move(__c), __a),
|
: c(_VSTD::move(__c), __a),
|
||||||
comp(__comp)
|
comp(__comp)
|
||||||
{
|
{
|
||||||
|
@ -770,7 +770,7 @@ template <class _Alloc>
|
||||||
inline
|
inline
|
||||||
priority_queue<_Tp, _Container, _Compare>::priority_queue(priority_queue&& __q,
|
priority_queue<_Tp, _Container, _Compare>::priority_queue(priority_queue&& __q,
|
||||||
const _Alloc& __a,
|
const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>*)
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>*)
|
||||||
: c(_VSTD::move(__q.c), __a),
|
: c(_VSTD::move(__q.c), __a),
|
||||||
comp(_VSTD::move(__q.comp))
|
comp(_VSTD::move(__q.comp))
|
||||||
{
|
{
|
||||||
|
@ -783,7 +783,7 @@ template <class _InputIter, class _Alloc, class>
|
||||||
inline
|
inline
|
||||||
priority_queue<_Tp, _Container, _Compare>::priority_queue(
|
priority_queue<_Tp, _Container, _Compare>::priority_queue(
|
||||||
_InputIter __f, _InputIter __l, const _Alloc& __a,
|
_InputIter __f, _InputIter __l, const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>*)
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>*)
|
||||||
: c(__f, __l, __a),
|
: c(__f, __l, __a),
|
||||||
comp()
|
comp()
|
||||||
{
|
{
|
||||||
|
@ -796,7 +796,7 @@ inline
|
||||||
priority_queue<_Tp, _Container, _Compare>::priority_queue(
|
priority_queue<_Tp, _Container, _Compare>::priority_queue(
|
||||||
_InputIter __f, _InputIter __l,
|
_InputIter __f, _InputIter __l,
|
||||||
const value_compare& __comp, const _Alloc& __a,
|
const value_compare& __comp, const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>*)
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>*)
|
||||||
: c(__f, __l, __a),
|
: c(__f, __l, __a),
|
||||||
comp(__comp)
|
comp(__comp)
|
||||||
{
|
{
|
||||||
|
@ -809,7 +809,7 @@ inline
|
||||||
priority_queue<_Tp, _Container, _Compare>::priority_queue(
|
priority_queue<_Tp, _Container, _Compare>::priority_queue(
|
||||||
_InputIter __f, _InputIter __l,
|
_InputIter __f, _InputIter __l,
|
||||||
const value_compare& __comp, const container_type& __c, const _Alloc& __a,
|
const value_compare& __comp, const container_type& __c, const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>*)
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>*)
|
||||||
: c(__c, __a),
|
: c(__c, __a),
|
||||||
comp(__comp)
|
comp(__comp)
|
||||||
{
|
{
|
||||||
|
@ -824,7 +824,7 @@ inline
|
||||||
priority_queue<_Tp, _Container, _Compare>::priority_queue(
|
priority_queue<_Tp, _Container, _Compare>::priority_queue(
|
||||||
_InputIter __f, _InputIter __l, const value_compare& __comp,
|
_InputIter __f, _InputIter __l, const value_compare& __comp,
|
||||||
container_type&& __c, const _Alloc& __a,
|
container_type&& __c, const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>*)
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>*)
|
||||||
: c(_VSTD::move(__c), __a),
|
: c(_VSTD::move(__c), __a),
|
||||||
comp(__comp)
|
comp(__comp)
|
||||||
{
|
{
|
||||||
|
@ -888,7 +888,7 @@ priority_queue<_Tp, _Container, _Compare>::swap(priority_queue& __q)
|
||||||
|
|
||||||
template <class _Tp, class _Container, class _Compare>
|
template <class _Tp, class _Container, class _Compare>
|
||||||
inline _LIBCPP_INLINE_VISIBILITY
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
_EnableIf<
|
__enable_if_t<
|
||||||
__is_swappable<_Container>::value && __is_swappable<_Compare>::value,
|
__is_swappable<_Container>::value && __is_swappable<_Compare>::value,
|
||||||
void
|
void
|
||||||
>
|
>
|
||||||
|
|
|
@ -158,28 +158,28 @@ public:
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
explicit stack(const _Alloc& __a,
|
explicit stack(const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>* = 0)
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0)
|
||||||
: c(__a) {}
|
: c(__a) {}
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
stack(const container_type& __c, const _Alloc& __a,
|
stack(const container_type& __c, const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>* = 0)
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0)
|
||||||
: c(__c, __a) {}
|
: c(__c, __a) {}
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
stack(const stack& __s, const _Alloc& __a,
|
stack(const stack& __s, const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>* = 0)
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0)
|
||||||
: c(__s.c, __a) {}
|
: c(__s.c, __a) {}
|
||||||
#ifndef _LIBCPP_CXX03_LANG
|
#ifndef _LIBCPP_CXX03_LANG
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
stack(container_type&& __c, const _Alloc& __a,
|
stack(container_type&& __c, const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>* = 0)
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0)
|
||||||
: c(_VSTD::move(__c), __a) {}
|
: c(_VSTD::move(__c), __a) {}
|
||||||
template <class _Alloc>
|
template <class _Alloc>
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
stack(stack&& __s, const _Alloc& __a,
|
stack(stack&& __s, const _Alloc& __a,
|
||||||
_EnableIf<uses_allocator<container_type, _Alloc>::value>* = 0)
|
__enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0)
|
||||||
: c(_VSTD::move(__s.c), __a) {}
|
: c(_VSTD::move(__s.c), __a) {}
|
||||||
#endif // _LIBCPP_CXX03_LANG
|
#endif // _LIBCPP_CXX03_LANG
|
||||||
|
|
||||||
|
@ -297,7 +297,7 @@ operator<=(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y)
|
||||||
|
|
||||||
template <class _Tp, class _Container>
|
template <class _Tp, class _Container>
|
||||||
inline _LIBCPP_INLINE_VISIBILITY
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
_EnableIf<__is_swappable<_Container>::value, void>
|
__enable_if_t<__is_swappable<_Container>::value, void>
|
||||||
swap(stack<_Tp, _Container>& __x, stack<_Tp, _Container>& __y)
|
swap(stack<_Tp, _Container>& __x, stack<_Tp, _Container>& __y)
|
||||||
_NOEXCEPT_(_NOEXCEPT_(__x.swap(__y)))
|
_NOEXCEPT_(_NOEXCEPT_(__x.swap(__y)))
|
||||||
{
|
{
|
||||||
|
|
|
@ -832,7 +832,7 @@ public:
|
||||||
basic_string(basic_string&& __str, const allocator_type& __a);
|
basic_string(basic_string&& __str, const allocator_type& __a);
|
||||||
#endif // _LIBCPP_CXX03_LANG
|
#endif // _LIBCPP_CXX03_LANG
|
||||||
|
|
||||||
template <class = _EnableIf<__is_allocator<_Allocator>::value, nullptr_t> >
|
template <class = __enable_if_t<__is_allocator<_Allocator>::value, nullptr_t> >
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
basic_string(const _CharT* __s) : __r_(__default_init_tag(), __default_init_tag()) {
|
basic_string(const _CharT* __s) : __r_(__default_init_tag(), __default_init_tag()) {
|
||||||
_LIBCPP_ASSERT(__s != nullptr, "basic_string(const char*) detected nullptr");
|
_LIBCPP_ASSERT(__s != nullptr, "basic_string(const char*) detected nullptr");
|
||||||
|
@ -842,7 +842,7 @@ public:
|
||||||
# endif
|
# endif
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class = _EnableIf<__is_allocator<_Allocator>::value, nullptr_t> >
|
template <class = __enable_if_t<__is_allocator<_Allocator>::value, nullptr_t> >
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
basic_string(const _CharT* __s, const _Allocator& __a);
|
basic_string(const _CharT* __s, const _Allocator& __a);
|
||||||
|
|
||||||
|
@ -857,7 +857,7 @@ public:
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
basic_string(size_type __n, _CharT __c);
|
basic_string(size_type __n, _CharT __c);
|
||||||
|
|
||||||
template <class = _EnableIf<__is_allocator<_Allocator>::value, nullptr_t> >
|
template <class = __enable_if_t<__is_allocator<_Allocator>::value, nullptr_t> >
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
basic_string(size_type __n, _CharT __c, const _Allocator& __a);
|
basic_string(size_type __n, _CharT __c, const _Allocator& __a);
|
||||||
|
|
||||||
|
@ -867,24 +867,24 @@ public:
|
||||||
basic_string(const basic_string& __str, size_type __pos,
|
basic_string(const basic_string& __str, size_type __pos,
|
||||||
const _Allocator& __a = _Allocator());
|
const _Allocator& __a = _Allocator());
|
||||||
|
|
||||||
template<class _Tp, class = _EnableIf<__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value && !__is_same_uncvref<_Tp, basic_string>::value> >
|
template<class _Tp, class = __enable_if_t<__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value && !__is_same_uncvref<_Tp, basic_string>::value> >
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
basic_string(const _Tp& __t, size_type __pos, size_type __n,
|
basic_string(const _Tp& __t, size_type __pos, size_type __n,
|
||||||
const allocator_type& __a = allocator_type());
|
const allocator_type& __a = allocator_type());
|
||||||
|
|
||||||
template<class _Tp, class = _EnableIf<__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value &&
|
template<class _Tp, class = __enable_if_t<__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value &&
|
||||||
!__is_same_uncvref<_Tp, basic_string>::value> >
|
!__is_same_uncvref<_Tp, basic_string>::value> >
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
explicit basic_string(const _Tp& __t);
|
explicit basic_string(const _Tp& __t);
|
||||||
|
|
||||||
template<class _Tp, class = _EnableIf<__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value && !__is_same_uncvref<_Tp, basic_string>::value> >
|
template<class _Tp, class = __enable_if_t<__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value && !__is_same_uncvref<_Tp, basic_string>::value> >
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
explicit basic_string(const _Tp& __t, const allocator_type& __a);
|
explicit basic_string(const _Tp& __t, const allocator_type& __a);
|
||||||
|
|
||||||
template<class _InputIterator, class = _EnableIf<__is_cpp17_input_iterator<_InputIterator>::value> >
|
template<class _InputIterator, class = __enable_if_t<__is_cpp17_input_iterator<_InputIterator>::value> >
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
basic_string(_InputIterator __first, _InputIterator __last);
|
basic_string(_InputIterator __first, _InputIterator __last);
|
||||||
template<class _InputIterator, class = _EnableIf<__is_cpp17_input_iterator<_InputIterator>::value> >
|
template<class _InputIterator, class = __enable_if_t<__is_cpp17_input_iterator<_InputIterator>::value> >
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
basic_string(_InputIterator __first, _InputIterator __last, const allocator_type& __a);
|
basic_string(_InputIterator __first, _InputIterator __last, const allocator_type& __a);
|
||||||
#ifndef _LIBCPP_CXX03_LANG
|
#ifndef _LIBCPP_CXX03_LANG
|
||||||
|
@ -901,7 +901,7 @@ public:
|
||||||
|
|
||||||
basic_string& operator=(const basic_string& __str);
|
basic_string& operator=(const basic_string& __str);
|
||||||
|
|
||||||
template <class _Tp, class = _EnableIf<__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value && !__is_same_uncvref<_Tp, basic_string>::value> >
|
template <class _Tp, class = __enable_if_t<__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value && !__is_same_uncvref<_Tp, basic_string>::value> >
|
||||||
basic_string& operator=(const _Tp& __t)
|
basic_string& operator=(const _Tp& __t)
|
||||||
{__self_view __sv = __t; return assign(__sv);}
|
{__self_view __sv = __t; return assign(__sv);}
|
||||||
|
|
||||||
|
@ -1004,7 +1004,7 @@ public:
|
||||||
|
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value
|
||||||
&& !__is_same_uncvref<_Tp, basic_string >::value,
|
&& !__is_same_uncvref<_Tp, basic_string >::value,
|
||||||
|
@ -1022,7 +1022,7 @@ public:
|
||||||
|
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
_EnableIf<
|
__enable_if_t<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value
|
||||||
&& !__is_same_uncvref<_Tp, basic_string>::value,
|
&& !__is_same_uncvref<_Tp, basic_string>::value,
|
||||||
basic_string&
|
basic_string&
|
||||||
|
@ -1032,7 +1032,7 @@ public:
|
||||||
|
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value
|
||||||
&& !__is_same_uncvref<_Tp, basic_string>::value,
|
&& !__is_same_uncvref<_Tp, basic_string>::value,
|
||||||
|
@ -1048,7 +1048,7 @@ public:
|
||||||
|
|
||||||
template<class _InputIterator>
|
template<class _InputIterator>
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__is_exactly_cpp17_input_iterator<_InputIterator>::value,
|
__is_exactly_cpp17_input_iterator<_InputIterator>::value,
|
||||||
basic_string&
|
basic_string&
|
||||||
|
@ -1061,7 +1061,7 @@ public:
|
||||||
}
|
}
|
||||||
template<class _ForwardIterator>
|
template<class _ForwardIterator>
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__is_cpp17_forward_iterator<_ForwardIterator>::value,
|
__is_cpp17_forward_iterator<_ForwardIterator>::value,
|
||||||
basic_string&
|
basic_string&
|
||||||
|
@ -1084,7 +1084,7 @@ public:
|
||||||
|
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
||||||
basic_string&
|
basic_string&
|
||||||
|
@ -1101,7 +1101,7 @@ public:
|
||||||
basic_string& assign(const basic_string& __str, size_type __pos, size_type __n=npos);
|
basic_string& assign(const basic_string& __str, size_type __pos, size_type __n=npos);
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value
|
||||||
&& !__is_same_uncvref<_Tp, basic_string>::value,
|
&& !__is_same_uncvref<_Tp, basic_string>::value,
|
||||||
|
@ -1113,7 +1113,7 @@ public:
|
||||||
basic_string& assign(size_type __n, value_type __c);
|
basic_string& assign(size_type __n, value_type __c);
|
||||||
template<class _InputIterator>
|
template<class _InputIterator>
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__is_exactly_cpp17_input_iterator<_InputIterator>::value,
|
__is_exactly_cpp17_input_iterator<_InputIterator>::value,
|
||||||
basic_string&
|
basic_string&
|
||||||
|
@ -1121,7 +1121,7 @@ public:
|
||||||
assign(_InputIterator __first, _InputIterator __last);
|
assign(_InputIterator __first, _InputIterator __last);
|
||||||
template<class _ForwardIterator>
|
template<class _ForwardIterator>
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__is_cpp17_forward_iterator<_ForwardIterator>::value,
|
__is_cpp17_forward_iterator<_ForwardIterator>::value,
|
||||||
basic_string&
|
basic_string&
|
||||||
|
@ -1137,7 +1137,7 @@ public:
|
||||||
|
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
||||||
basic_string&
|
basic_string&
|
||||||
|
@ -1147,7 +1147,7 @@ public:
|
||||||
|
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value && !__is_same_uncvref<_Tp, basic_string>::value,
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value && !__is_same_uncvref<_Tp, basic_string>::value,
|
||||||
basic_string&
|
basic_string&
|
||||||
|
@ -1162,7 +1162,7 @@ public:
|
||||||
iterator insert(const_iterator __pos, size_type __n, value_type __c);
|
iterator insert(const_iterator __pos, size_type __n, value_type __c);
|
||||||
template<class _InputIterator>
|
template<class _InputIterator>
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__is_exactly_cpp17_input_iterator<_InputIterator>::value,
|
__is_exactly_cpp17_input_iterator<_InputIterator>::value,
|
||||||
iterator
|
iterator
|
||||||
|
@ -1170,7 +1170,7 @@ public:
|
||||||
insert(const_iterator __pos, _InputIterator __first, _InputIterator __last);
|
insert(const_iterator __pos, _InputIterator __first, _InputIterator __last);
|
||||||
template<class _ForwardIterator>
|
template<class _ForwardIterator>
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__is_cpp17_forward_iterator<_ForwardIterator>::value,
|
__is_cpp17_forward_iterator<_ForwardIterator>::value,
|
||||||
iterator
|
iterator
|
||||||
|
@ -1193,7 +1193,7 @@ public:
|
||||||
|
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
||||||
basic_string&
|
basic_string&
|
||||||
|
@ -1202,7 +1202,7 @@ public:
|
||||||
basic_string& replace(size_type __pos1, size_type __n1, const basic_string& __str, size_type __pos2, size_type __n2=npos);
|
basic_string& replace(size_type __pos1, size_type __n1, const basic_string& __str, size_type __pos2, size_type __n2=npos);
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value && !__is_same_uncvref<_Tp, basic_string>::value,
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value && !__is_same_uncvref<_Tp, basic_string>::value,
|
||||||
basic_string&
|
basic_string&
|
||||||
|
@ -1216,7 +1216,7 @@ public:
|
||||||
|
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
||||||
basic_string&
|
basic_string&
|
||||||
|
@ -1231,7 +1231,7 @@ public:
|
||||||
basic_string& replace(const_iterator __i1, const_iterator __i2, size_type __n, value_type __c);
|
basic_string& replace(const_iterator __i1, const_iterator __i2, size_type __n, value_type __c);
|
||||||
template<class _InputIterator>
|
template<class _InputIterator>
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__is_cpp17_input_iterator<_InputIterator>::value,
|
__is_cpp17_input_iterator<_InputIterator>::value,
|
||||||
basic_string&
|
basic_string&
|
||||||
|
@ -1273,7 +1273,7 @@ public:
|
||||||
|
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
||||||
size_type
|
size_type
|
||||||
|
@ -1289,7 +1289,7 @@ public:
|
||||||
|
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
||||||
size_type
|
size_type
|
||||||
|
@ -1305,7 +1305,7 @@ public:
|
||||||
|
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
||||||
size_type
|
size_type
|
||||||
|
@ -1322,7 +1322,7 @@ public:
|
||||||
|
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
||||||
size_type
|
size_type
|
||||||
|
@ -1339,7 +1339,7 @@ public:
|
||||||
|
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
||||||
size_type
|
size_type
|
||||||
|
@ -1356,7 +1356,7 @@ public:
|
||||||
|
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
||||||
size_type
|
size_type
|
||||||
|
@ -1373,7 +1373,7 @@ public:
|
||||||
|
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
||||||
int
|
int
|
||||||
|
@ -1382,7 +1382,7 @@ public:
|
||||||
|
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
||||||
int
|
int
|
||||||
|
@ -1395,7 +1395,7 @@ public:
|
||||||
|
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
inline _LIBCPP_INLINE_VISIBILITY
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value && !__is_same_uncvref<_Tp, basic_string>::value,
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value && !__is_same_uncvref<_Tp, basic_string>::value,
|
||||||
int
|
int
|
||||||
|
@ -1591,7 +1591,7 @@ private:
|
||||||
|
|
||||||
template <class _InputIterator>
|
template <class _InputIterator>
|
||||||
inline
|
inline
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__is_exactly_cpp17_input_iterator<_InputIterator>::value
|
__is_exactly_cpp17_input_iterator<_InputIterator>::value
|
||||||
>
|
>
|
||||||
|
@ -1599,7 +1599,7 @@ private:
|
||||||
|
|
||||||
template <class _ForwardIterator>
|
template <class _ForwardIterator>
|
||||||
inline
|
inline
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__is_cpp17_forward_iterator<_ForwardIterator>::value
|
__is_cpp17_forward_iterator<_ForwardIterator>::value
|
||||||
>
|
>
|
||||||
|
@ -2136,7 +2136,7 @@ basic_string<_CharT, _Traits, _Allocator>::basic_string(const _Tp & __t, const _
|
||||||
|
|
||||||
template <class _CharT, class _Traits, class _Allocator>
|
template <class _CharT, class _Traits, class _Allocator>
|
||||||
template <class _InputIterator>
|
template <class _InputIterator>
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__is_exactly_cpp17_input_iterator<_InputIterator>::value
|
__is_exactly_cpp17_input_iterator<_InputIterator>::value
|
||||||
>
|
>
|
||||||
|
@ -2162,7 +2162,7 @@ basic_string<_CharT, _Traits, _Allocator>::__init(_InputIterator __first, _Input
|
||||||
|
|
||||||
template <class _CharT, class _Traits, class _Allocator>
|
template <class _CharT, class _Traits, class _Allocator>
|
||||||
template <class _ForwardIterator>
|
template <class _ForwardIterator>
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__is_cpp17_forward_iterator<_ForwardIterator>::value
|
__is_cpp17_forward_iterator<_ForwardIterator>::value
|
||||||
>
|
>
|
||||||
|
@ -2491,7 +2491,7 @@ basic_string<_CharT, _Traits, _Allocator>::operator=(basic_string&& __str)
|
||||||
|
|
||||||
template <class _CharT, class _Traits, class _Allocator>
|
template <class _CharT, class _Traits, class _Allocator>
|
||||||
template<class _InputIterator>
|
template<class _InputIterator>
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__is_exactly_cpp17_input_iterator<_InputIterator>::value,
|
__is_exactly_cpp17_input_iterator<_InputIterator>::value,
|
||||||
basic_string<_CharT, _Traits, _Allocator>&
|
basic_string<_CharT, _Traits, _Allocator>&
|
||||||
|
@ -2505,7 +2505,7 @@ basic_string<_CharT, _Traits, _Allocator>::assign(_InputIterator __first, _Input
|
||||||
|
|
||||||
template <class _CharT, class _Traits, class _Allocator>
|
template <class _CharT, class _Traits, class _Allocator>
|
||||||
template<class _ForwardIterator>
|
template<class _ForwardIterator>
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__is_cpp17_forward_iterator<_ForwardIterator>::value,
|
__is_cpp17_forward_iterator<_ForwardIterator>::value,
|
||||||
basic_string<_CharT, _Traits, _Allocator>&
|
basic_string<_CharT, _Traits, _Allocator>&
|
||||||
|
@ -2551,7 +2551,7 @@ basic_string<_CharT, _Traits, _Allocator>::assign(const basic_string& __str, siz
|
||||||
|
|
||||||
template <class _CharT, class _Traits, class _Allocator>
|
template <class _CharT, class _Traits, class _Allocator>
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value
|
||||||
&& !__is_same_uncvref<_Tp, basic_string<_CharT, _Traits, _Allocator> >::value,
|
&& !__is_same_uncvref<_Tp, basic_string<_CharT, _Traits, _Allocator> >::value,
|
||||||
|
@ -2684,7 +2684,7 @@ basic_string<_CharT, _Traits, _Allocator>::push_back(value_type __c)
|
||||||
|
|
||||||
template <class _CharT, class _Traits, class _Allocator>
|
template <class _CharT, class _Traits, class _Allocator>
|
||||||
template<class _ForwardIterator>
|
template<class _ForwardIterator>
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__is_cpp17_forward_iterator<_ForwardIterator>::value,
|
__is_cpp17_forward_iterator<_ForwardIterator>::value,
|
||||||
basic_string<_CharT, _Traits, _Allocator>&
|
basic_string<_CharT, _Traits, _Allocator>&
|
||||||
|
@ -2737,7 +2737,7 @@ basic_string<_CharT, _Traits, _Allocator>::append(const basic_string& __str, siz
|
||||||
|
|
||||||
template <class _CharT, class _Traits, class _Allocator>
|
template <class _CharT, class _Traits, class _Allocator>
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value && !__is_same_uncvref<_Tp, basic_string<_CharT, _Traits, _Allocator> >::value,
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value && !__is_same_uncvref<_Tp, basic_string<_CharT, _Traits, _Allocator> >::value,
|
||||||
basic_string<_CharT, _Traits, _Allocator>&
|
basic_string<_CharT, _Traits, _Allocator>&
|
||||||
|
@ -2826,7 +2826,7 @@ basic_string<_CharT, _Traits, _Allocator>::insert(size_type __pos, size_type __n
|
||||||
|
|
||||||
template <class _CharT, class _Traits, class _Allocator>
|
template <class _CharT, class _Traits, class _Allocator>
|
||||||
template<class _InputIterator>
|
template<class _InputIterator>
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__is_exactly_cpp17_input_iterator<_InputIterator>::value,
|
__is_exactly_cpp17_input_iterator<_InputIterator>::value,
|
||||||
typename basic_string<_CharT, _Traits, _Allocator>::iterator
|
typename basic_string<_CharT, _Traits, _Allocator>::iterator
|
||||||
|
@ -2844,7 +2844,7 @@ basic_string<_CharT, _Traits, _Allocator>::insert(const_iterator __pos, _InputIt
|
||||||
|
|
||||||
template <class _CharT, class _Traits, class _Allocator>
|
template <class _CharT, class _Traits, class _Allocator>
|
||||||
template<class _ForwardIterator>
|
template<class _ForwardIterator>
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__is_cpp17_forward_iterator<_ForwardIterator>::value,
|
__is_cpp17_forward_iterator<_ForwardIterator>::value,
|
||||||
typename basic_string<_CharT, _Traits, _Allocator>::iterator
|
typename basic_string<_CharT, _Traits, _Allocator>::iterator
|
||||||
|
@ -2914,7 +2914,7 @@ basic_string<_CharT, _Traits, _Allocator>::insert(size_type __pos1, const basic_
|
||||||
|
|
||||||
template <class _CharT, class _Traits, class _Allocator>
|
template <class _CharT, class _Traits, class _Allocator>
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value && !__is_same_uncvref<_Tp, basic_string<_CharT, _Traits, _Allocator> >::value,
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value && !__is_same_uncvref<_Tp, basic_string<_CharT, _Traits, _Allocator> >::value,
|
||||||
basic_string<_CharT, _Traits, _Allocator>&
|
basic_string<_CharT, _Traits, _Allocator>&
|
||||||
|
@ -3071,7 +3071,7 @@ basic_string<_CharT, _Traits, _Allocator>::replace(size_type __pos, size_type __
|
||||||
|
|
||||||
template <class _CharT, class _Traits, class _Allocator>
|
template <class _CharT, class _Traits, class _Allocator>
|
||||||
template<class _InputIterator>
|
template<class _InputIterator>
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__is_cpp17_input_iterator<_InputIterator>::value,
|
__is_cpp17_input_iterator<_InputIterator>::value,
|
||||||
basic_string<_CharT, _Traits, _Allocator>&
|
basic_string<_CharT, _Traits, _Allocator>&
|
||||||
|
@ -3104,7 +3104,7 @@ basic_string<_CharT, _Traits, _Allocator>::replace(size_type __pos1, size_type _
|
||||||
|
|
||||||
template <class _CharT, class _Traits, class _Allocator>
|
template <class _CharT, class _Traits, class _Allocator>
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value && !__is_same_uncvref<_Tp, basic_string<_CharT, _Traits, _Allocator> >::value,
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value && !__is_same_uncvref<_Tp, basic_string<_CharT, _Traits, _Allocator> >::value,
|
||||||
basic_string<_CharT, _Traits, _Allocator>&
|
basic_string<_CharT, _Traits, _Allocator>&
|
||||||
|
@ -3563,7 +3563,7 @@ basic_string<_CharT, _Traits, _Allocator>::find(const basic_string& __str,
|
||||||
|
|
||||||
template<class _CharT, class _Traits, class _Allocator>
|
template<class _CharT, class _Traits, class _Allocator>
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
||||||
typename basic_string<_CharT, _Traits, _Allocator>::size_type
|
typename basic_string<_CharT, _Traits, _Allocator>::size_type
|
||||||
|
@ -3621,7 +3621,7 @@ basic_string<_CharT, _Traits, _Allocator>::rfind(const basic_string& __str,
|
||||||
|
|
||||||
template<class _CharT, class _Traits, class _Allocator>
|
template<class _CharT, class _Traits, class _Allocator>
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
||||||
typename basic_string<_CharT, _Traits, _Allocator>::size_type
|
typename basic_string<_CharT, _Traits, _Allocator>::size_type
|
||||||
|
@ -3679,7 +3679,7 @@ basic_string<_CharT, _Traits, _Allocator>::find_first_of(const basic_string& __s
|
||||||
|
|
||||||
template<class _CharT, class _Traits, class _Allocator>
|
template<class _CharT, class _Traits, class _Allocator>
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
||||||
typename basic_string<_CharT, _Traits, _Allocator>::size_type
|
typename basic_string<_CharT, _Traits, _Allocator>::size_type
|
||||||
|
@ -3737,7 +3737,7 @@ basic_string<_CharT, _Traits, _Allocator>::find_last_of(const basic_string& __st
|
||||||
|
|
||||||
template<class _CharT, class _Traits, class _Allocator>
|
template<class _CharT, class _Traits, class _Allocator>
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
||||||
typename basic_string<_CharT, _Traits, _Allocator>::size_type
|
typename basic_string<_CharT, _Traits, _Allocator>::size_type
|
||||||
|
@ -3795,7 +3795,7 @@ basic_string<_CharT, _Traits, _Allocator>::find_first_not_of(const basic_string&
|
||||||
|
|
||||||
template<class _CharT, class _Traits, class _Allocator>
|
template<class _CharT, class _Traits, class _Allocator>
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
||||||
typename basic_string<_CharT, _Traits, _Allocator>::size_type
|
typename basic_string<_CharT, _Traits, _Allocator>::size_type
|
||||||
|
@ -3854,7 +3854,7 @@ basic_string<_CharT, _Traits, _Allocator>::find_last_not_of(const basic_string&
|
||||||
|
|
||||||
template<class _CharT, class _Traits, class _Allocator>
|
template<class _CharT, class _Traits, class _Allocator>
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
||||||
typename basic_string<_CharT, _Traits, _Allocator>::size_type
|
typename basic_string<_CharT, _Traits, _Allocator>::size_type
|
||||||
|
@ -3892,7 +3892,7 @@ basic_string<_CharT, _Traits, _Allocator>::find_last_not_of(value_type __c,
|
||||||
|
|
||||||
template <class _CharT, class _Traits, class _Allocator>
|
template <class _CharT, class _Traits, class _Allocator>
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
||||||
int
|
int
|
||||||
|
@ -3946,7 +3946,7 @@ basic_string<_CharT, _Traits, _Allocator>::compare(size_type __pos1,
|
||||||
|
|
||||||
template <class _CharT, class _Traits, class _Allocator>
|
template <class _CharT, class _Traits, class _Allocator>
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
|
||||||
int
|
int
|
||||||
|
@ -3971,7 +3971,7 @@ basic_string<_CharT, _Traits, _Allocator>::compare(size_type __pos1,
|
||||||
|
|
||||||
template <class _CharT, class _Traits, class _Allocator>
|
template <class _CharT, class _Traits, class _Allocator>
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
_EnableIf
|
__enable_if_t
|
||||||
<
|
<
|
||||||
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value
|
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value
|
||||||
&& !__is_same_uncvref<_Tp, basic_string<_CharT, _Traits, _Allocator> >::value,
|
&& !__is_same_uncvref<_Tp, basic_string<_CharT, _Traits, _Allocator> >::value,
|
||||||
|
|
|
@ -231,7 +231,7 @@ public:
|
||||||
"Attempted to default construct a reference element in a tuple");}
|
"Attempted to default construct a reference element in a tuple");}
|
||||||
|
|
||||||
template <class _Tp,
|
template <class _Tp,
|
||||||
class = _EnableIf<
|
class = __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_IsNotSame<__uncvref_t<_Tp>, __tuple_leaf>,
|
_IsNotSame<__uncvref_t<_Tp>, __tuple_leaf>,
|
||||||
is_constructible<_Hp, _Tp>
|
is_constructible<_Hp, _Tp>
|
||||||
|
@ -304,7 +304,7 @@ public:
|
||||||
: _Hp(__a) {}
|
: _Hp(__a) {}
|
||||||
|
|
||||||
template <class _Tp,
|
template <class _Tp,
|
||||||
class = _EnableIf<
|
class = __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_IsNotSame<__uncvref_t<_Tp>, __tuple_leaf>,
|
_IsNotSame<__uncvref_t<_Tp>, __tuple_leaf>,
|
||||||
is_constructible<_Hp, _Tp>
|
is_constructible<_Hp, _Tp>
|
||||||
|
@ -466,7 +466,7 @@ public:
|
||||||
// [tuple.cnstr]
|
// [tuple.cnstr]
|
||||||
|
|
||||||
// tuple() constructors (including allocator_arg_t variants)
|
// tuple() constructors (including allocator_arg_t variants)
|
||||||
template <template<class...> class _IsImpDefault = __is_implicitly_default_constructible, _EnableIf<
|
template <template<class...> class _IsImpDefault = __is_implicitly_default_constructible, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_IsImpDefault<_Tp>... // explicit check
|
_IsImpDefault<_Tp>... // explicit check
|
||||||
>::value
|
>::value
|
||||||
|
@ -477,7 +477,7 @@ public:
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
template <template<class...> class _IsImpDefault = __is_implicitly_default_constructible,
|
template <template<class...> class _IsImpDefault = __is_implicitly_default_constructible,
|
||||||
template<class...> class _IsDefault = is_default_constructible, _EnableIf<
|
template<class...> class _IsDefault = is_default_constructible, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_IsDefault<_Tp>...,
|
_IsDefault<_Tp>...,
|
||||||
_Not<_Lazy<_And, _IsImpDefault<_Tp>...> > // explicit check
|
_Not<_Lazy<_And, _IsImpDefault<_Tp>...> > // explicit check
|
||||||
|
@ -488,7 +488,7 @@ public:
|
||||||
_NOEXCEPT_(_And<is_nothrow_default_constructible<_Tp>...>::value)
|
_NOEXCEPT_(_And<is_nothrow_default_constructible<_Tp>...>::value)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
template <class _Alloc, template<class...> class _IsImpDefault = __is_implicitly_default_constructible, _EnableIf<
|
template <class _Alloc, template<class...> class _IsImpDefault = __is_implicitly_default_constructible, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_IsImpDefault<_Tp>... // explicit check
|
_IsImpDefault<_Tp>... // explicit check
|
||||||
>::value
|
>::value
|
||||||
|
@ -502,7 +502,7 @@ public:
|
||||||
|
|
||||||
template <class _Alloc,
|
template <class _Alloc,
|
||||||
template<class...> class _IsImpDefault = __is_implicitly_default_constructible,
|
template<class...> class _IsImpDefault = __is_implicitly_default_constructible,
|
||||||
template<class...> class _IsDefault = is_default_constructible, _EnableIf<
|
template<class...> class _IsDefault = is_default_constructible, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_IsDefault<_Tp>...,
|
_IsDefault<_Tp>...,
|
||||||
_Not<_Lazy<_And, _IsImpDefault<_Tp>...> > // explicit check
|
_Not<_Lazy<_And, _IsImpDefault<_Tp>...> > // explicit check
|
||||||
|
@ -516,7 +516,7 @@ public:
|
||||||
__tuple_types<_Tp...>()) {}
|
__tuple_types<_Tp...>()) {}
|
||||||
|
|
||||||
// tuple(const T&...) constructors (including allocator_arg_t variants)
|
// tuple(const T&...) constructors (including allocator_arg_t variants)
|
||||||
template <template<class...> class _And = _And, _EnableIf<
|
template <template<class...> class _And = _And, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<sizeof...(_Tp) >= 1>,
|
_BoolConstant<sizeof...(_Tp) >= 1>,
|
||||||
is_copy_constructible<_Tp>...,
|
is_copy_constructible<_Tp>...,
|
||||||
|
@ -533,7 +533,7 @@ public:
|
||||||
__t...
|
__t...
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
template <template<class...> class _And = _And, _EnableIf<
|
template <template<class...> class _And = _And, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<sizeof...(_Tp) >= 1>,
|
_BoolConstant<sizeof...(_Tp) >= 1>,
|
||||||
is_copy_constructible<_Tp>...,
|
is_copy_constructible<_Tp>...,
|
||||||
|
@ -550,7 +550,7 @@ public:
|
||||||
__t...
|
__t...
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
template <class _Alloc, template<class...> class _And = _And, _EnableIf<
|
template <class _Alloc, template<class...> class _And = _And, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<sizeof...(_Tp) >= 1>,
|
_BoolConstant<sizeof...(_Tp) >= 1>,
|
||||||
is_copy_constructible<_Tp>...,
|
is_copy_constructible<_Tp>...,
|
||||||
|
@ -567,7 +567,7 @@ public:
|
||||||
__t...
|
__t...
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
template <class _Alloc, template<class...> class _And = _And, _EnableIf<
|
template <class _Alloc, template<class...> class _And = _And, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<sizeof...(_Tp) >= 1>,
|
_BoolConstant<sizeof...(_Tp) >= 1>,
|
||||||
is_copy_constructible<_Tp>...,
|
is_copy_constructible<_Tp>...,
|
||||||
|
@ -595,7 +595,7 @@ public:
|
||||||
is_constructible<_Tp, _Up>...
|
is_constructible<_Tp, _Up>...
|
||||||
> { };
|
> { };
|
||||||
|
|
||||||
template <class ..._Up, _EnableIf<
|
template <class ..._Up, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<sizeof...(_Up) == sizeof...(_Tp)>,
|
_BoolConstant<sizeof...(_Up) == sizeof...(_Tp)>,
|
||||||
_EnableUTypesCtor<_Up...>,
|
_EnableUTypesCtor<_Up...>,
|
||||||
|
@ -611,7 +611,7 @@ public:
|
||||||
typename __make_tuple_types<tuple, sizeof...(_Tp), sizeof...(_Up)>::type(),
|
typename __make_tuple_types<tuple, sizeof...(_Tp), sizeof...(_Up)>::type(),
|
||||||
_VSTD::forward<_Up>(__u)...) {}
|
_VSTD::forward<_Up>(__u)...) {}
|
||||||
|
|
||||||
template <class ..._Up, _EnableIf<
|
template <class ..._Up, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<sizeof...(_Up) == sizeof...(_Tp)>,
|
_BoolConstant<sizeof...(_Up) == sizeof...(_Tp)>,
|
||||||
_EnableUTypesCtor<_Up...>,
|
_EnableUTypesCtor<_Up...>,
|
||||||
|
@ -627,7 +627,7 @@ public:
|
||||||
typename __make_tuple_types<tuple, sizeof...(_Tp), sizeof...(_Up)>::type(),
|
typename __make_tuple_types<tuple, sizeof...(_Tp), sizeof...(_Up)>::type(),
|
||||||
_VSTD::forward<_Up>(__u)...) {}
|
_VSTD::forward<_Up>(__u)...) {}
|
||||||
|
|
||||||
template <class _Alloc, class ..._Up, _EnableIf<
|
template <class _Alloc, class ..._Up, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<sizeof...(_Up) == sizeof...(_Tp)>,
|
_BoolConstant<sizeof...(_Up) == sizeof...(_Tp)>,
|
||||||
_EnableUTypesCtor<_Up...>,
|
_EnableUTypesCtor<_Up...>,
|
||||||
|
@ -643,7 +643,7 @@ public:
|
||||||
typename __make_tuple_types<tuple, sizeof...(_Tp), sizeof...(_Up)>::type(),
|
typename __make_tuple_types<tuple, sizeof...(_Tp), sizeof...(_Up)>::type(),
|
||||||
_VSTD::forward<_Up>(__u)...) {}
|
_VSTD::forward<_Up>(__u)...) {}
|
||||||
|
|
||||||
template <class _Alloc, class ..._Up, _EnableIf<
|
template <class _Alloc, class ..._Up, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<sizeof...(_Up) == sizeof...(_Tp)>,
|
_BoolConstant<sizeof...(_Up) == sizeof...(_Tp)>,
|
||||||
_EnableUTypesCtor<_Up...>,
|
_EnableUTypesCtor<_Up...>,
|
||||||
|
@ -663,14 +663,14 @@ public:
|
||||||
tuple(const tuple&) = default;
|
tuple(const tuple&) = default;
|
||||||
tuple(tuple&&) = default;
|
tuple(tuple&&) = default;
|
||||||
|
|
||||||
template <class _Alloc, template<class...> class _And = _And, _EnableIf<
|
template <class _Alloc, template<class...> class _And = _And, __enable_if_t<
|
||||||
_And<is_copy_constructible<_Tp>...>::value
|
_And<is_copy_constructible<_Tp>...>::value
|
||||||
, int> = 0>
|
, int> = 0>
|
||||||
tuple(allocator_arg_t, const _Alloc& __alloc, const tuple& __t)
|
tuple(allocator_arg_t, const _Alloc& __alloc, const tuple& __t)
|
||||||
: __base_(allocator_arg_t(), __alloc, __t)
|
: __base_(allocator_arg_t(), __alloc, __t)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
template <class _Alloc, template<class...> class _And = _And, _EnableIf<
|
template <class _Alloc, template<class...> class _And = _And, __enable_if_t<
|
||||||
_And<is_move_constructible<_Tp>...>::value
|
_And<is_move_constructible<_Tp>...>::value
|
||||||
, int> = 0>
|
, int> = 0>
|
||||||
tuple(allocator_arg_t, const _Alloc& __alloc, tuple&& __t)
|
tuple(allocator_arg_t, const _Alloc& __alloc, tuple&& __t)
|
||||||
|
@ -693,7 +693,7 @@ public:
|
||||||
is_constructible<_Tp, const _Up&>...
|
is_constructible<_Tp, const _Up&>...
|
||||||
> { };
|
> { };
|
||||||
|
|
||||||
template <class ..._Up, _EnableIf<
|
template <class ..._Up, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<sizeof...(_Up) == sizeof...(_Tp)>,
|
_BoolConstant<sizeof...(_Up) == sizeof...(_Tp)>,
|
||||||
_EnableCopyFromOtherTuple<_Up...>,
|
_EnableCopyFromOtherTuple<_Up...>,
|
||||||
|
@ -706,7 +706,7 @@ public:
|
||||||
: __base_(__t)
|
: __base_(__t)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
template <class ..._Up, _EnableIf<
|
template <class ..._Up, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<sizeof...(_Up) == sizeof...(_Tp)>,
|
_BoolConstant<sizeof...(_Up) == sizeof...(_Tp)>,
|
||||||
_EnableCopyFromOtherTuple<_Up...>,
|
_EnableCopyFromOtherTuple<_Up...>,
|
||||||
|
@ -719,7 +719,7 @@ public:
|
||||||
: __base_(__t)
|
: __base_(__t)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
template <class ..._Up, class _Alloc, _EnableIf<
|
template <class ..._Up, class _Alloc, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<sizeof...(_Up) == sizeof...(_Tp)>,
|
_BoolConstant<sizeof...(_Up) == sizeof...(_Tp)>,
|
||||||
_EnableCopyFromOtherTuple<_Up...>,
|
_EnableCopyFromOtherTuple<_Up...>,
|
||||||
|
@ -731,7 +731,7 @@ public:
|
||||||
: __base_(allocator_arg_t(), __a, __t)
|
: __base_(allocator_arg_t(), __a, __t)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
template <class ..._Up, class _Alloc, _EnableIf<
|
template <class ..._Up, class _Alloc, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<sizeof...(_Up) == sizeof...(_Tp)>,
|
_BoolConstant<sizeof...(_Up) == sizeof...(_Tp)>,
|
||||||
_EnableCopyFromOtherTuple<_Up...>,
|
_EnableCopyFromOtherTuple<_Up...>,
|
||||||
|
@ -759,7 +759,7 @@ public:
|
||||||
is_constructible<_Tp, _Up>...
|
is_constructible<_Tp, _Up>...
|
||||||
> { };
|
> { };
|
||||||
|
|
||||||
template <class ..._Up, _EnableIf<
|
template <class ..._Up, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<sizeof...(_Up) == sizeof...(_Tp)>,
|
_BoolConstant<sizeof...(_Up) == sizeof...(_Tp)>,
|
||||||
_EnableMoveFromOtherTuple<_Up...>,
|
_EnableMoveFromOtherTuple<_Up...>,
|
||||||
|
@ -772,7 +772,7 @@ public:
|
||||||
: __base_(_VSTD::move(__t))
|
: __base_(_VSTD::move(__t))
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
template <class ..._Up, _EnableIf<
|
template <class ..._Up, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<sizeof...(_Up) == sizeof...(_Tp)>,
|
_BoolConstant<sizeof...(_Up) == sizeof...(_Tp)>,
|
||||||
_EnableMoveFromOtherTuple<_Up...>,
|
_EnableMoveFromOtherTuple<_Up...>,
|
||||||
|
@ -785,7 +785,7 @@ public:
|
||||||
: __base_(_VSTD::move(__t))
|
: __base_(_VSTD::move(__t))
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
template <class _Alloc, class ..._Up, _EnableIf<
|
template <class _Alloc, class ..._Up, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<sizeof...(_Up) == sizeof...(_Tp)>,
|
_BoolConstant<sizeof...(_Up) == sizeof...(_Tp)>,
|
||||||
_EnableMoveFromOtherTuple<_Up...>,
|
_EnableMoveFromOtherTuple<_Up...>,
|
||||||
|
@ -797,7 +797,7 @@ public:
|
||||||
: __base_(allocator_arg_t(), __a, _VSTD::move(__t))
|
: __base_(allocator_arg_t(), __a, _VSTD::move(__t))
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
template <class _Alloc, class ..._Up, _EnableIf<
|
template <class _Alloc, class ..._Up, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<sizeof...(_Up) == sizeof...(_Tp)>,
|
_BoolConstant<sizeof...(_Up) == sizeof...(_Tp)>,
|
||||||
_EnableMoveFromOtherTuple<_Up...>,
|
_EnableMoveFromOtherTuple<_Up...>,
|
||||||
|
@ -826,7 +826,7 @@ public:
|
||||||
_Not<is_convertible<const _Up2&, _SecondType<_DependentTp...> > >
|
_Not<is_convertible<const _Up2&, _SecondType<_DependentTp...> > >
|
||||||
> { };
|
> { };
|
||||||
|
|
||||||
template <class _Up1, class _Up2, template<class...> class _And = _And, _EnableIf<
|
template <class _Up1, class _Up2, template<class...> class _And = _And, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<sizeof...(_Tp) == 2>,
|
_BoolConstant<sizeof...(_Tp) == 2>,
|
||||||
_EnableImplicitCopyFromPair<_Up1, _Up2, _Tp...>
|
_EnableImplicitCopyFromPair<_Up1, _Up2, _Tp...>
|
||||||
|
@ -841,7 +841,7 @@ public:
|
||||||
: __base_(__p)
|
: __base_(__p)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
template <class _Up1, class _Up2, template<class...> class _And = _And, _EnableIf<
|
template <class _Up1, class _Up2, template<class...> class _And = _And, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<sizeof...(_Tp) == 2>,
|
_BoolConstant<sizeof...(_Tp) == 2>,
|
||||||
_EnableExplicitCopyFromPair<_Up1, _Up2, _Tp...>
|
_EnableExplicitCopyFromPair<_Up1, _Up2, _Tp...>
|
||||||
|
@ -856,7 +856,7 @@ public:
|
||||||
: __base_(__p)
|
: __base_(__p)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
template <class _Alloc, class _Up1, class _Up2, template<class...> class _And = _And, _EnableIf<
|
template <class _Alloc, class _Up1, class _Up2, template<class...> class _And = _And, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<sizeof...(_Tp) == 2>,
|
_BoolConstant<sizeof...(_Tp) == 2>,
|
||||||
_EnableImplicitCopyFromPair<_Up1, _Up2, _Tp...>
|
_EnableImplicitCopyFromPair<_Up1, _Up2, _Tp...>
|
||||||
|
@ -867,7 +867,7 @@ public:
|
||||||
: __base_(allocator_arg_t(), __a, __p)
|
: __base_(allocator_arg_t(), __a, __p)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
template <class _Alloc, class _Up1, class _Up2, template<class...> class _And = _And, _EnableIf<
|
template <class _Alloc, class _Up1, class _Up2, template<class...> class _And = _And, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<sizeof...(_Tp) == 2>,
|
_BoolConstant<sizeof...(_Tp) == 2>,
|
||||||
_EnableExplicitCopyFromPair<_Up1, _Up2, _Tp...>
|
_EnableExplicitCopyFromPair<_Up1, _Up2, _Tp...>
|
||||||
|
@ -895,7 +895,7 @@ public:
|
||||||
_Not<is_convertible<_Up2, _SecondType<_DependentTp...> > >
|
_Not<is_convertible<_Up2, _SecondType<_DependentTp...> > >
|
||||||
> { };
|
> { };
|
||||||
|
|
||||||
template <class _Up1, class _Up2, template<class...> class _And = _And, _EnableIf<
|
template <class _Up1, class _Up2, template<class...> class _And = _And, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<sizeof...(_Tp) == 2>,
|
_BoolConstant<sizeof...(_Tp) == 2>,
|
||||||
_EnableImplicitMoveFromPair<_Up1, _Up2, _Tp...>
|
_EnableImplicitMoveFromPair<_Up1, _Up2, _Tp...>
|
||||||
|
@ -910,7 +910,7 @@ public:
|
||||||
: __base_(_VSTD::move(__p))
|
: __base_(_VSTD::move(__p))
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
template <class _Up1, class _Up2, template<class...> class _And = _And, _EnableIf<
|
template <class _Up1, class _Up2, template<class...> class _And = _And, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<sizeof...(_Tp) == 2>,
|
_BoolConstant<sizeof...(_Tp) == 2>,
|
||||||
_EnableExplicitMoveFromPair<_Up1, _Up2, _Tp...>
|
_EnableExplicitMoveFromPair<_Up1, _Up2, _Tp...>
|
||||||
|
@ -925,7 +925,7 @@ public:
|
||||||
: __base_(_VSTD::move(__p))
|
: __base_(_VSTD::move(__p))
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
template <class _Alloc, class _Up1, class _Up2, template<class...> class _And = _And, _EnableIf<
|
template <class _Alloc, class _Up1, class _Up2, template<class...> class _And = _And, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<sizeof...(_Tp) == 2>,
|
_BoolConstant<sizeof...(_Tp) == 2>,
|
||||||
_EnableImplicitMoveFromPair<_Up1, _Up2, _Tp...>
|
_EnableImplicitMoveFromPair<_Up1, _Up2, _Tp...>
|
||||||
|
@ -936,7 +936,7 @@ public:
|
||||||
: __base_(allocator_arg_t(), __a, _VSTD::move(__p))
|
: __base_(allocator_arg_t(), __a, _VSTD::move(__p))
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
template <class _Alloc, class _Up1, class _Up2, template<class...> class _And = _And, _EnableIf<
|
template <class _Alloc, class _Up1, class _Up2, template<class...> class _And = _And, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<sizeof...(_Tp) == 2>,
|
_BoolConstant<sizeof...(_Tp) == 2>,
|
||||||
_EnableExplicitMoveFromPair<_Up1, _Up2, _Tp...>
|
_EnableExplicitMoveFromPair<_Up1, _Up2, _Tp...>
|
||||||
|
@ -967,7 +967,7 @@ public:
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class... _Up, _EnableIf<
|
template<class... _Up, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<sizeof...(_Tp) == sizeof...(_Up)>,
|
_BoolConstant<sizeof...(_Tp) == sizeof...(_Up)>,
|
||||||
is_assignable<_Tp&, _Up const&>...
|
is_assignable<_Tp&, _Up const&>...
|
||||||
|
@ -982,7 +982,7 @@ public:
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class... _Up, _EnableIf<
|
template<class... _Up, __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<sizeof...(_Tp) == sizeof...(_Up)>,
|
_BoolConstant<sizeof...(_Tp) == sizeof...(_Up)>,
|
||||||
is_assignable<_Tp&, _Up>...
|
is_assignable<_Tp&, _Up>...
|
||||||
|
@ -998,7 +998,7 @@ public:
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class _Up1, class _Up2, class _Dep = true_type, _EnableIf<
|
template<class _Up1, class _Up2, class _Dep = true_type, __enable_if_t<
|
||||||
_And<_Dep,
|
_And<_Dep,
|
||||||
_BoolConstant<sizeof...(_Tp) == 2>,
|
_BoolConstant<sizeof...(_Tp) == 2>,
|
||||||
is_assignable<_FirstType<_Tp..., _Dep>&, _Up1 const&>,
|
is_assignable<_FirstType<_Tp..., _Dep>&, _Up1 const&>,
|
||||||
|
@ -1017,7 +1017,7 @@ public:
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class _Up1, class _Up2, class _Dep = true_type, _EnableIf<
|
template<class _Up1, class _Up2, class _Dep = true_type, __enable_if_t<
|
||||||
_And<_Dep,
|
_And<_Dep,
|
||||||
_BoolConstant<sizeof...(_Tp) == 2>,
|
_BoolConstant<sizeof...(_Tp) == 2>,
|
||||||
is_assignable<_FirstType<_Tp..., _Dep>&, _Up1>,
|
is_assignable<_FirstType<_Tp..., _Dep>&, _Up1>,
|
||||||
|
@ -1037,7 +1037,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
// EXTENSION
|
// EXTENSION
|
||||||
template<class _Up, size_t _Np, class = _EnableIf<
|
template<class _Up, size_t _Np, class = __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<_Np == sizeof...(_Tp)>,
|
_BoolConstant<_Np == sizeof...(_Tp)>,
|
||||||
is_assignable<_Tp&, _Up const&>...
|
is_assignable<_Tp&, _Up const&>...
|
||||||
|
@ -1053,7 +1053,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
// EXTENSION
|
// EXTENSION
|
||||||
template<class _Up, size_t _Np, class = void, class = _EnableIf<
|
template<class _Up, size_t _Np, class = void, class = __enable_if_t<
|
||||||
_And<
|
_And<
|
||||||
_BoolConstant<_Np == sizeof...(_Tp)>,
|
_BoolConstant<_Np == sizeof...(_Tp)>,
|
||||||
is_assignable<_Tp&, _Up>...
|
is_assignable<_Tp&, _Up>...
|
||||||
|
|
|
@ -458,7 +458,7 @@ using bool_constant = integral_constant<bool, __b>;
|
||||||
template <bool, class _Tp = void> struct _LIBCPP_TEMPLATE_VIS enable_if {};
|
template <bool, class _Tp = void> struct _LIBCPP_TEMPLATE_VIS enable_if {};
|
||||||
template <class _Tp> struct _LIBCPP_TEMPLATE_VIS enable_if<true, _Tp> {typedef _Tp type;};
|
template <class _Tp> struct _LIBCPP_TEMPLATE_VIS enable_if<true, _Tp> {typedef _Tp type;};
|
||||||
|
|
||||||
template <bool _Bp, class _Tp = void> using _EnableIf _LIBCPP_NODEBUG = typename enable_if<_Bp, _Tp>::type;
|
template <bool _Bp, class _Tp = void> using __enable_if_t _LIBCPP_NODEBUG = typename enable_if<_Bp, _Tp>::type;
|
||||||
|
|
||||||
#if _LIBCPP_STD_VER > 11
|
#if _LIBCPP_STD_VER > 11
|
||||||
template <bool _Bp, class _Tp = void> using enable_if_t = typename enable_if<_Bp, _Tp>::type;
|
template <bool _Bp, class _Tp = void> using enable_if_t = typename enable_if<_Bp, _Tp>::type;
|
||||||
|
@ -507,7 +507,7 @@ using _SecondType _LIBCPP_NODEBUG = typename _MetaBase<(sizeof...(_Args) >= 2)>:
|
||||||
|
|
||||||
template <class ...> using __expand_to_true = true_type;
|
template <class ...> using __expand_to_true = true_type;
|
||||||
template <class ..._Pred>
|
template <class ..._Pred>
|
||||||
__expand_to_true<_EnableIf<_Pred::value>...> __and_helper(int);
|
__expand_to_true<__enable_if_t<_Pred::value>...> __and_helper(int);
|
||||||
template <class ...>
|
template <class ...>
|
||||||
false_type __and_helper(...);
|
false_type __and_helper(...);
|
||||||
template <class ..._Pred>
|
template <class ..._Pred>
|
||||||
|
@ -593,7 +593,7 @@ using _IsNotSame = _BoolConstant<
|
||||||
|
|
||||||
|
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
using __test_for_primary_template = _EnableIf<
|
using __test_for_primary_template = __enable_if_t<
|
||||||
_IsSame<_Tp, typename _Tp::__primary_template>::value
|
_IsSame<_Tp, typename _Tp::__primary_template>::value
|
||||||
>;
|
>;
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
|
|
Loading…
Reference in New Issue