IsInteger.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_UTIL_TYPETRAITS_ISINTEGER_H_
36 #define _BLAZE_UTIL_TYPETRAITS_ISINTEGER_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <blaze/util/FalseType.h>
44 #include <blaze/util/TrueType.h>
45 
46 
47 namespace blaze {
48 
49 //=================================================================================================
50 //
51 // CLASS DEFINITION
52 //
53 //=================================================================================================
54 
55 //*************************************************************************************************
79 template< typename T >
80 struct IsInteger
81  : public FalseType
82 {};
83 //*************************************************************************************************
84 
85 
86 //*************************************************************************************************
88 template<>
90 struct IsInteger<int>
91  : public TrueType
92 {};
94 //*************************************************************************************************
95 
96 
97 //*************************************************************************************************
99 template<>
101 struct IsInteger<const int>
102  : public TrueType
103 {};
105 //*************************************************************************************************
106 
107 
108 //*************************************************************************************************
110 template<>
112 struct IsInteger<volatile int>
113  : public TrueType
114 {};
116 //*************************************************************************************************
117 
118 
119 //*************************************************************************************************
121 template<>
123 struct IsInteger<const volatile int>
124  : public TrueType
125 {};
127 //*************************************************************************************************
128 
129 
130 //*************************************************************************************************
132 template<>
134 struct IsInteger<unsigned int>
135  : public TrueType
136 {};
138 //*************************************************************************************************
139 
140 
141 //*************************************************************************************************
143 template<>
145 struct IsInteger<const unsigned int>
146  : public TrueType
147 {};
149 //*************************************************************************************************
150 
151 
152 //*************************************************************************************************
154 template<>
156 struct IsInteger<volatile unsigned int>
157  : public TrueType
158 {};
160 //*************************************************************************************************
161 
162 
163 //*************************************************************************************************
165 template<>
167 struct IsInteger<const volatile unsigned int>
168  : public TrueType
169 {};
171 //*************************************************************************************************
172 
173 } // namespace blaze
174 
175 #endif
Header file for the FalseType type/value trait base class.
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:71
Compile time check for integer types.This type trait tests whether or not the given template paramete...
Definition: IsInteger.h:80
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Header file for the TrueType type/value trait base class.