// of associative containers.
template<typename _InputIterator>
using __iter_key_t = remove_const_t<
- typename iterator_traits<_InputIterator>::value_type::first_type>;
+ typename iterator_traits<_InputIterator>::value_type::first_type>;
template<typename _InputIterator>
- using __iter_val_t =
- typename iterator_traits<_InputIterator>::value_type::second_type;
+ using __iter_val_t
+ = typename iterator_traits<_InputIterator>::value_type::second_type;
template<typename _T1, typename _T2>
struct pair;
template<typename _InputIterator>
- using __iter_to_alloc_t =
- pair<add_const_t<__iter_key_t<_InputIterator>>,
- __iter_val_t<_InputIterator>>;
+ using __iter_to_alloc_t
+ = pair<const __iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>>;
#endif // __cpp_deduction_guides
_GLIBCXX_END_NAMESPACE_VERSION
template<size_t __i, typename _Tp>
struct tuple_element<__i, const _Tp>
{
- typedef typename add_const<__tuple_element_t<__i, _Tp>>::type type;
+ using type = const __tuple_element_t<__i, _Tp>;
};
template<size_t __i, typename _Tp>
struct tuple_element<__i, volatile _Tp>
{
- typedef typename add_volatile<__tuple_element_t<__i, _Tp>>::type type;
+ using type = volatile __tuple_element_t<__i, _Tp>;
};
template<size_t __i, typename _Tp>
struct tuple_element<__i, const volatile _Tp>
{
- typedef typename add_cv<__tuple_element_t<__i, _Tp>>::type type;
+ using type = const volatile __tuple_element_t<__i, _Tp>;
};
#if __cplusplus >= 201402L
/// add_const
template<typename _Tp>
struct add_const
- { typedef _Tp const type; };
+ { using type = _Tp const; };
/// add_volatile
template<typename _Tp>
struct add_volatile
- { typedef _Tp volatile type; };
+ { using type = _Tp volatile; };
/// add_cv
template<typename _Tp>
struct add_cv
- {
- typedef typename
- add_const<typename add_volatile<_Tp>::type>::type type;
- };
+ { using type = _Tp const volatile; };
#if __cplusplus > 201103L
template<size_t _Np, typename _Variant>
struct variant_alternative<_Np, const _Variant>
- { using type = add_const_t<variant_alternative_t<_Np, _Variant>>; };
+ { using type = const variant_alternative_t<_Np, _Variant>; };
template<size_t _Np, typename _Variant>
struct variant_alternative<_Np, volatile _Variant>
- { using type = add_volatile_t<variant_alternative_t<_Np, _Variant>>; };
+ { using type = volatile variant_alternative_t<_Np, _Variant>; };
template<size_t _Np, typename _Variant>
struct variant_alternative<_Np, const volatile _Variant>
- { using type = add_cv_t<variant_alternative_t<_Np, _Variant>>; };
+ { using type = const volatile variant_alternative_t<_Np, _Variant>; };
inline constexpr size_t variant_npos = -1;