Improve tests for new *_t template aliases.

Add missing *_t aliases.
This commit is contained in:
jzmaddock committed 2017-05-18 19:44:29 +01:00
1 parent 13d4b60dea
commit bb867c86d8
6 files changed
+51

No files matched your search

+2
View File
@@ -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`.
+2
View File
@@ -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>`