@@ -44,10 +44,10 @@ _LIBCPP_BEGIN_NAMESPACE_STD
44
44
45
45
// __pointer
46
46
template <class _Tp >
47
- using __pointer_member = typename _Tp::pointer;
47
+ using __pointer_member _LIBCPP_NODEBUG = typename _Tp::pointer;
48
48
49
49
template <class _Tp , class _Alloc >
50
- using __pointer = __detected_or_t <_Tp*, __pointer_member, __libcpp_remove_reference_t <_Alloc> >;
50
+ using __pointer _LIBCPP_NODEBUG = __detected_or_t <_Tp*, __pointer_member, __libcpp_remove_reference_t <_Alloc> >;
51
51
52
52
// __const_pointer
53
53
_LIBCPP_ALLOCATOR_TRAITS_HAS_XXX (__has_const_pointer, const_pointer);
@@ -58,7 +58,7 @@ struct __const_pointer {
58
58
template <class _Tp , class _Ptr , class _Alloc >
59
59
struct __const_pointer <_Tp, _Ptr, _Alloc, false > {
60
60
#ifdef _LIBCPP_CXX03_LANG
61
- using type = typename pointer_traits<_Ptr>::template rebind<const _Tp>::other;
61
+ using type _LIBCPP_NODEBUG = typename pointer_traits<_Ptr>::template rebind<const _Tp>::other;
62
62
#else
63
63
using type _LIBCPP_NODEBUG = typename pointer_traits<_Ptr>::template rebind<const _Tp>;
64
64
#endif
@@ -96,10 +96,10 @@ struct __const_void_pointer<_Ptr, _Alloc, false> {
96
96
97
97
// __size_type
98
98
template <class _Tp >
99
- using __size_type_member = typename _Tp::size_type;
99
+ using __size_type_member _LIBCPP_NODEBUG = typename _Tp::size_type;
100
100
101
101
template <class _Alloc , class _DiffType >
102
- using __size_type = __detected_or_t <__make_unsigned_t <_DiffType>, __size_type_member, _Alloc>;
102
+ using __size_type _LIBCPP_NODEBUG = __detected_or_t <__make_unsigned_t <_DiffType>, __size_type_member, _Alloc>;
103
103
104
104
// __alloc_traits_difference_type
105
105
_LIBCPP_ALLOCATOR_TRAITS_HAS_XXX (__has_alloc_traits_difference_type, difference_type);
@@ -114,33 +114,37 @@ struct __alloc_traits_difference_type<_Alloc, _Ptr, true> {
114
114
115
115
// __propagate_on_container_copy_assignment
116
116
template <class _Tp >
117
- using __propagate_on_container_copy_assignment_member = typename _Tp::propagate_on_container_copy_assignment;
117
+ using __propagate_on_container_copy_assignment_member _LIBCPP_NODEBUG =
118
+ typename _Tp::propagate_on_container_copy_assignment;
118
119
119
120
template <class _Alloc >
120
- using __propagate_on_container_copy_assignment =
121
+ using __propagate_on_container_copy_assignment _LIBCPP_NODEBUG =
121
122
__detected_or_t <false_type, __propagate_on_container_copy_assignment_member, _Alloc>;
122
123
123
124
// __propagate_on_container_move_assignment
124
125
template <class _Tp >
125
- using __propagate_on_container_move_assignment_member = typename _Tp::propagate_on_container_move_assignment;
126
+ using __propagate_on_container_move_assignment_member _LIBCPP_NODEBUG =
127
+ typename _Tp::propagate_on_container_move_assignment;
126
128
127
129
template <class _Alloc >
128
- using __propagate_on_container_move_assignment =
130
+ using __propagate_on_container_move_assignment _LIBCPP_NODEBUG =
129
131
__detected_or_t <false_type, __propagate_on_container_move_assignment_member, _Alloc>;
130
132
131
133
// __propagate_on_container_swap
132
134
template <class _Tp >
133
- using __propagate_on_container_swap_member = typename _Tp::propagate_on_container_swap;
135
+ using __propagate_on_container_swap_member _LIBCPP_NODEBUG = typename _Tp::propagate_on_container_swap;
134
136
135
137
template <class _Alloc >
136
- using __propagate_on_container_swap = __detected_or_t <false_type, __propagate_on_container_swap_member, _Alloc>;
138
+ using __propagate_on_container_swap _LIBCPP_NODEBUG =
139
+ __detected_or_t <false_type, __propagate_on_container_swap_member, _Alloc>;
137
140
138
141
// __is_always_equal
139
142
template <class _Tp >
140
- using __is_always_equal_member = typename _Tp::is_always_equal;
143
+ using __is_always_equal_member _LIBCPP_NODEBUG = typename _Tp::is_always_equal;
141
144
142
145
template <class _Alloc >
143
- using __is_always_equal = __detected_or_t <typename is_empty<_Alloc>::type, __is_always_equal_member, _Alloc>;
146
+ using __is_always_equal _LIBCPP_NODEBUG =
147
+ __detected_or_t <typename is_empty<_Alloc>::type, __is_always_equal_member, _Alloc>;
144
148
145
149
// __allocator_traits_rebind
146
150
_LIBCPP_SUPPRESS_DEPRECATED_PUSH
@@ -165,7 +169,7 @@ struct __allocator_traits_rebind<_Alloc<_Tp, _Args...>, _Up, false> {
165
169
_LIBCPP_SUPPRESS_DEPRECATED_POP
166
170
167
171
template <class _Alloc , class _Tp >
168
- using __allocator_traits_rebind_t = typename __allocator_traits_rebind<_Alloc, _Tp>::type;
172
+ using __allocator_traits_rebind_t _LIBCPP_NODEBUG = typename __allocator_traits_rebind<_Alloc, _Tp>::type;
169
173
170
174
_LIBCPP_SUPPRESS_DEPRECATED_PUSH
171
175
@@ -355,12 +359,12 @@ template <class _Traits, class _Tp>
355
359
using __rebind_alloc _LIBCPP_NODEBUG = typename _Traits::template rebind_alloc<_Tp>;
356
360
#else
357
361
template <class _Traits , class _Tp >
358
- using __rebind_alloc = typename _Traits::template rebind_alloc<_Tp>::other;
362
+ using __rebind_alloc _LIBCPP_NODEBUG = typename _Traits::template rebind_alloc<_Tp>::other;
359
363
#endif
360
364
361
365
template <class _Alloc >
362
366
struct __check_valid_allocator : true_type {
363
- using _Traits = std::allocator_traits<_Alloc>;
367
+ using _Traits _LIBCPP_NODEBUG = std::allocator_traits<_Alloc>;
364
368
static_assert (is_same<_Alloc, __rebind_alloc<_Traits, typename _Traits::value_type> >::value,
365
369
" [allocator.requirements] states that rebinding an allocator to the same type should result in the "
366
370
" original allocator" );
0 commit comments