@@ -50,17 +50,17 @@ struct __pointer_traits_element_type {};
50
50
51
51
template <class _Ptr >
52
52
struct __pointer_traits_element_type <_Ptr, true > {
53
- typedef _LIBCPP_NODEBUG typename _Ptr::element_type type ;
53
+ using type _LIBCPP_NODEBUG = typename _Ptr::element_type;
54
54
};
55
55
56
56
template <template <class , class ...> class _Sp , class _Tp , class ... _Args>
57
57
struct __pointer_traits_element_type <_Sp<_Tp, _Args...>, true > {
58
- typedef _LIBCPP_NODEBUG typename _Sp<_Tp, _Args...>::element_type type ;
58
+ using type _LIBCPP_NODEBUG = typename _Sp<_Tp, _Args...>::element_type;
59
59
};
60
60
61
61
template <template <class , class ...> class _Sp , class _Tp , class ... _Args>
62
62
struct __pointer_traits_element_type <_Sp<_Tp, _Args...>, false > {
63
- typedef _LIBCPP_NODEBUG _Tp type ;
63
+ using type _LIBCPP_NODEBUG = _Tp ;
64
64
};
65
65
66
66
template <class _Tp , class = void >
@@ -71,12 +71,12 @@ struct __has_difference_type<_Tp, __void_t<typename _Tp::difference_type> > : tr
71
71
72
72
template <class _Ptr , bool = __has_difference_type<_Ptr>::value>
73
73
struct __pointer_traits_difference_type {
74
- typedef _LIBCPP_NODEBUG ptrdiff_t type ;
74
+ using type _LIBCPP_NODEBUG = ptrdiff_t ;
75
75
};
76
76
77
77
template <class _Ptr >
78
78
struct __pointer_traits_difference_type <_Ptr, true > {
79
- typedef _LIBCPP_NODEBUG typename _Ptr::difference_type type ;
79
+ using type _LIBCPP_NODEBUG = typename _Ptr::difference_type;
80
80
};
81
81
82
82
template <class _Tp , class _Up >
@@ -96,18 +96,18 @@ struct __has_rebind {
96
96
template <class _Tp , class _Up , bool = __has_rebind<_Tp, _Up>::value>
97
97
struct __pointer_traits_rebind {
98
98
#ifndef _LIBCPP_CXX03_LANG
99
- typedef _LIBCPP_NODEBUG typename _Tp::template rebind<_Up> type ;
99
+ using type _LIBCPP_NODEBUG = typename _Tp::template rebind<_Up>;
100
100
#else
101
- typedef _LIBCPP_NODEBUG typename _Tp::template rebind<_Up>::other type ;
101
+ using type _LIBCPP_NODEBUG = typename _Tp::template rebind<_Up>::other;
102
102
#endif
103
103
};
104
104
105
105
template <template <class , class ...> class _Sp , class _Tp , class ... _Args, class _Up >
106
106
struct __pointer_traits_rebind <_Sp<_Tp, _Args...>, _Up, true > {
107
107
#ifndef _LIBCPP_CXX03_LANG
108
- typedef _LIBCPP_NODEBUG typename _Sp<_Tp, _Args...>::template rebind<_Up> type ;
108
+ using type _LIBCPP_NODEBUG = typename _Sp<_Tp, _Args...>::template rebind<_Up>;
109
109
#else
110
- typedef _LIBCPP_NODEBUG typename _Sp<_Tp, _Args...>::template rebind<_Up>::other type ;
110
+ using type _LIBCPP_NODEBUG = typename _Sp<_Tp, _Args...>::template rebind<_Up>::other;
111
111
#endif
112
112
};
113
113
0 commit comments