IsLong.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_UTIL_TYPETRAITS_ISLONG_H_
36 #define _BLAZE_UTIL_TYPETRAITS_ISLONG_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 //*************************************************************************************************
75 template< typename T >
76 struct IsLong
77  : public FalseType
78 {};
79 //*************************************************************************************************
80 
81 
82 //*************************************************************************************************
84 template<>
86 struct IsLong<long>
87  : public TrueType
88 {};
90 //*************************************************************************************************
91 
92 
93 //*************************************************************************************************
95 template<>
97 struct IsLong<const long>
98  : public TrueType
99 {};
101 //*************************************************************************************************
102 
103 
104 //*************************************************************************************************
106 template<>
108 struct IsLong<volatile long>
109  : public TrueType
110 {};
112 //*************************************************************************************************
113 
114 
115 //*************************************************************************************************
117 template<>
119 struct IsLong<const volatile long>
120  : public TrueType
121 {};
123 //*************************************************************************************************
124 
125 
126 //*************************************************************************************************
128 template<>
130 struct IsLong<unsigned long>
131  : public TrueType
132 {};
134 //*************************************************************************************************
135 
136 
137 //*************************************************************************************************
139 template<>
141 struct IsLong<const unsigned long>
142  : public TrueType
143 {};
145 //*************************************************************************************************
146 
147 
148 //*************************************************************************************************
150 template<>
152 struct IsLong<volatile unsigned long>
153  : public TrueType
154 {};
156 //*************************************************************************************************
157 
158 
159 //*************************************************************************************************
161 template<>
163 struct IsLong<const volatile unsigned long>
164  : public TrueType
165 {};
167 //*************************************************************************************************
168 
169 } // namespace blaze
170 
171 #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 long integer types.This type trait tests whether or not the given template par...
Definition: IsLong.h:76
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Header file for the TrueType type/value trait base class.