Blaze  3.6
IsPod.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_UTIL_TYPETRAITS_ISPOD_H_
36 #define _BLAZE_UTIL_TYPETRAITS_ISPOD_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 //*************************************************************************************************
86 template< typename T >
87 struct IsPod
88  : public BoolConstant< std::is_pod<T>::value >
89 {};
90 //*************************************************************************************************
91 
92 
93 //*************************************************************************************************
106 template< typename T >
107 constexpr bool IsPod_v = IsPod<T>::value;
108 //*************************************************************************************************
109 
110 } // namespace blaze
111 
112 #endif
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:72
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
constexpr bool IsPod_v
Auxiliary variable template for the IsPod type trait.The IsPod_v variable template provides a conveni...
Definition: IsPod.h:107
Header file for the IntegralConstant class template.
Compile time check for pod data types.This type trait tests whether or not the given template paramet...
Definition: IsPod.h:87