All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IsEmpty.h
Go to the documentation of this file.
1 //=================================================================================================
20 //=================================================================================================
21 
22 #ifndef _BLAZE_UTIL_TYPETRAITS_ISEMPTY_H_
23 #define _BLAZE_UTIL_TYPETRAITS_ISEMPTY_H_
24 
25 
26 //*************************************************************************************************
27 // Includes
28 //*************************************************************************************************
29 
30 #include <boost/type_traits/is_empty.hpp>
31 #include <blaze/util/FalseType.h>
32 #include <blaze/util/SelectType.h>
33 #include <blaze/util/TrueType.h>
34 
35 
36 namespace blaze {
37 
38 //=================================================================================================
39 //
40 // CLASS DEFINITION
41 //
42 //=================================================================================================
43 
44 //*************************************************************************************************
49 template< typename T >
50 struct IsEmptyHelper
51 {
52  //**********************************************************************************************
53  enum { value = boost::is_empty<T>::value };
54  typedef typename SelectType<value,TrueType,FalseType>::Type Type;
55  //**********************************************************************************************
56 };
58 //*************************************************************************************************
59 
60 
61 //*************************************************************************************************
83 template< typename T >
84 struct IsEmpty : public IsEmptyHelper<T>::Type
85 {
86  public:
87  //**********************************************************************************************
89  enum { value = IsEmptyHelper<T>::value };
90  typedef typename IsEmptyHelper<T>::Type Type;
92  //**********************************************************************************************
93 };
94 //*************************************************************************************************
95 
96 } // namespace blaze
97 
98 #endif