Blaze  3.6
IsEmpty.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_UTIL_TYPETRAITS_ISEMPTY_H_
36 #define _BLAZE_UTIL_TYPETRAITS_ISEMPTY_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <type_traits>
45 
46 
47 namespace blaze {
48 
49 //=================================================================================================
50 //
51 // CLASS DEFINITION
52 //
53 //=================================================================================================
54 
55 //*************************************************************************************************
77 template< typename T >
78 struct IsEmpty
79  : public BoolConstant< std::is_empty<T>::value >
80 {};
81 //*************************************************************************************************
82 
83 
84 //*************************************************************************************************
97 template< typename T >
98 constexpr bool IsEmpty_v = IsEmpty<T>::value;
99 //*************************************************************************************************
100 
101 } // namespace blaze
102 
103 #endif
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:72
constexpr bool IsEmpty_v
Auxiliary variable template for the IsEmpty type trait.The IsEmpty_v variable template provides a con...
Definition: IsEmpty.h:98
Compile time type check.This class tests whether the given template parameter is an empty class type,...
Definition: IsEmpty.h:78
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
Header file for the IntegralConstant class template.