Blaze 3.9
Loading...
Searching...
No Matches
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
44
45
46namespace blaze {
47
48//=================================================================================================
49//
50// CLASS DEFINITION
51//
52//=================================================================================================
53
54//*************************************************************************************************
78template< typename T >
80 : public FalseType
81{};
82//*************************************************************************************************
83
84
85//*************************************************************************************************
88template<>
89struct IsInteger<int>
90 : public TrueType
91{};
93//*************************************************************************************************
94
95
96//*************************************************************************************************
99template<>
100struct IsInteger<const int>
101 : public TrueType
102{};
104//*************************************************************************************************
105
106
107//*************************************************************************************************
110template<>
111struct IsInteger<volatile int>
112 : public TrueType
113{};
115//*************************************************************************************************
116
117
118//*************************************************************************************************
121template<>
122struct IsInteger<const volatile int>
123 : public TrueType
124{};
126//*************************************************************************************************
127
128
129//*************************************************************************************************
132template<>
133struct IsInteger<unsigned int>
134 : public TrueType
135{};
137//*************************************************************************************************
138
139
140//*************************************************************************************************
143template<>
144struct IsInteger<const unsigned int>
145 : public TrueType
146{};
148//*************************************************************************************************
149
150
151//*************************************************************************************************
154template<>
155struct IsInteger<volatile unsigned int>
156 : public TrueType
157{};
159//*************************************************************************************************
160
161
162//*************************************************************************************************
165template<>
166struct IsInteger<const volatile unsigned int>
167 : public TrueType
168{};
170//*************************************************************************************************
171
172
173//*************************************************************************************************
186template< typename T >
188//*************************************************************************************************
189
190} // namespace blaze
191
192#endif
Header file for the IntegralConstant class template.
constexpr bool IsInteger_v
Auxiliary variable template for the IsInteger type trait.
Definition IsInteger.h:187
BoolConstant< false > FalseType
Type/value traits base class.
Definition IntegralConstant.h:121
BoolConstant< true > TrueType
Type traits base class.
Definition IntegralConstant.h:132
Compile time check for integer types.
Definition IsInteger.h:81