forked from boostorg/type_traits
Improve tests for new *_t template aliases.
Add missing *_t aliases.
This commit is contained in:
1 parent
13d4b60dea
commit
bb867c86d8
6 files changed
+51
No files matched your search
@@ -54,6 +54,13 @@ template <> struct add_reference<const volatile void> { typedef const volatile v
|
||||
template <> struct add_reference<volatile void> { typedef volatile void type; };
|
||||
#endif
|
||||
|
||||
#if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
|
||||
|
||||
template <class T> using add_reference_t = typename add_reference<T>::type;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_TT_ADD_REFERENCE_HPP_INCLUDED
|
||||
@@ -16,6 +16,13 @@ namespace boost
|
||||
|
||||
template <class T> struct remove_bounds : public remove_extent<T> {};
|
||||
|
||||
#if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
|
||||
|
||||
template <class T> using remove_bounds_t = typename remove_bounds<T>::type;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_TT_REMOVE_BOUNDS_HPP_INCLUDED
|
||||
@@ -17,6 +17,13 @@ template<class T> struct type_identity
|
||||
typedef T type;
|
||||
};
|
||||
|
||||
#if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
|
||||
|
||||
template <class T> using type_identity_t = typename type_identity<T>::type;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // #ifndef BOOST_TYPE_TRAITS_TYPE_IDENTITY_HPP_INCLUDED
|
||||
Reference in new issue
Block a user