mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-23 20:36:11 +08:00
Added is_rvalue_reference
This commit is contained in:
parent
05bc2b83b5
commit
5e199b6bb4
@ -326,6 +326,13 @@ namespace etl
|
||||
template <typename T> struct is_trivially_copy_assignable : etl::is_pod<T> {};
|
||||
#endif
|
||||
|
||||
#if ETL_CPP11_SUPPORTED
|
||||
/// is_rvalue_reference
|
||||
///\ingroup type_traits
|
||||
template <class T> struct is_rvalue_reference : etl::false_type {};
|
||||
template <class T> struct is_rvalue_reference<T&&> : etl::true_type {};
|
||||
#endif
|
||||
|
||||
/// conditional
|
||||
///\ingroup type_traits
|
||||
template <bool B, typename T, typename F> struct conditional { typedef T type; };
|
||||
@ -347,7 +354,7 @@ namespace etl
|
||||
struct conditional_integral_constant<false, T, TRUE_VALUE, FALSE_VALUE>
|
||||
{
|
||||
ETL_STATIC_ASSERT(etl::is_integral<T>::value, "Not an integral type");
|
||||
static const T value = FALSE_VALUE;
|
||||
static const T value = FALSE_VALUE;
|
||||
};
|
||||
|
||||
/// make_signed
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user