@@ -50,17 +50,17 @@ struct __pointer_traits_element_type {};
5050
5151template <class _Ptr >
5252struct __pointer_traits_element_type <_Ptr, true > {
53- typedef _LIBCPP_NODEBUG typename _Ptr::element_type type ;
53+ using type _LIBCPP_NODEBUG = typename _Ptr::element_type;
5454};
5555
5656template <template <class , class ...> class _Sp , class _Tp , class ... _Args>
5757struct __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;
5959};
6060
6161template <template <class , class ...> class _Sp , class _Tp , class ... _Args>
6262struct __pointer_traits_element_type <_Sp<_Tp, _Args...>, false > {
63- typedef _LIBCPP_NODEBUG _Tp type ;
63+ using type _LIBCPP_NODEBUG = _Tp ;
6464};
6565
6666template <class _Tp , class = void >
@@ -71,12 +71,12 @@ struct __has_difference_type<_Tp, __void_t<typename _Tp::difference_type> > : tr
7171
7272template <class _Ptr , bool = __has_difference_type<_Ptr>::value>
7373struct __pointer_traits_difference_type {
74- typedef _LIBCPP_NODEBUG ptrdiff_t type ;
74+ using type _LIBCPP_NODEBUG = ptrdiff_t ;
7575};
7676
7777template <class _Ptr >
7878struct __pointer_traits_difference_type <_Ptr, true > {
79- typedef _LIBCPP_NODEBUG typename _Ptr::difference_type type ;
79+ using type _LIBCPP_NODEBUG = typename _Ptr::difference_type;
8080};
8181
8282template <class _Tp , class _Up >
@@ -96,18 +96,18 @@ struct __has_rebind {
9696template <class _Tp , class _Up , bool = __has_rebind<_Tp, _Up>::value>
9797struct __pointer_traits_rebind {
9898#ifndef _LIBCPP_CXX03_LANG
99- typedef _LIBCPP_NODEBUG typename _Tp::template rebind<_Up> type ;
99+ using type _LIBCPP_NODEBUG = typename _Tp::template rebind<_Up>;
100100#else
101- typedef _LIBCPP_NODEBUG typename _Tp::template rebind<_Up>::other type ;
101+ using type _LIBCPP_NODEBUG = typename _Tp::template rebind<_Up>::other;
102102#endif
103103};
104104
105105template <template <class , class ...> class _Sp , class _Tp , class ... _Args, class _Up >
106106struct __pointer_traits_rebind <_Sp<_Tp, _Args...>, _Up, true > {
107107#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>;
109109#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;
111111#endif
112112};
113113
0 commit comments