All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IsPod.h
Go to the documentation of this file.
1 //=================================================================================================
20 //=================================================================================================
21 
22 #ifndef _BLAZE_UTIL_TYPETRAITS_ISPOD_H_
23 #define _BLAZE_UTIL_TYPETRAITS_ISPOD_H_
24 
25 
26 //*************************************************************************************************
27 // Includes
28 //*************************************************************************************************
29 
30 #include <boost/type_traits/is_pod.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 IsPodHelper
51 {
52  //**********************************************************************************************
53  enum { value = boost::is_pod<T>::value };
54  typedef typename SelectType<value,TrueType,FalseType>::Type Type;
55  //**********************************************************************************************
56 };
58 //*************************************************************************************************
59 
60 
61 //*************************************************************************************************
92 template< typename T >
93 struct IsPod : public IsPodHelper<T>::Type
94 {
95  public:
96  //**********************************************************************************************
98  enum { value = IsPodHelper<T>::value };
99  typedef typename IsPodHelper<T>::Type Type;
101  //**********************************************************************************************
102 };
103 //*************************************************************************************************
104 
105 } // namespace blaze
106 
107 #endif