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
@@ -18,6 +18,8 @@ for backwards compatibility only.
|
||||
{
|
||||
typedef __below type;
|
||||
};
|
||||
|
||||
template <class T> using add_reference_t = typename add_reference<T>::type; // C++11 and above
|
||||
|
||||
__type If `T` is not a reference type then `T&`, otherwise `T`.
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
{
|
||||
typedef T type;
|
||||
};
|
||||
|
||||
template <class T> using type_identity_t = typename type_identity<T>::type; // C++11 and above
|
||||
|
||||
__header ` #include <boost/type_traits/type_identity.hpp>` or ` #include <boost/type_traits.hpp>`
|
||||
|
||||
|
||||
Reference in new issue
Block a user