IsCharacter.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_UTIL_TYPETRAITS_ISCHARACTER_H_
36 #define _BLAZE_UTIL_TYPETRAITS_ISCHARACTER_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 >
77  : public FalseType
78 {};
79 //*************************************************************************************************
80 
81 
82 //*************************************************************************************************
84 template<>
86 struct IsCharacter<char>
87  : public TrueType
88 {};
90 //*************************************************************************************************
91 
92 
93 //*************************************************************************************************
95 template<>
97 struct IsCharacter<signed char>
98  : public TrueType
99 {};
101 //*************************************************************************************************
102 
103 
104 //*************************************************************************************************
106 template<>
108 struct IsCharacter<unsigned char>
109  : public TrueType
110 {};
112 //*************************************************************************************************
113 
114 
115 //*************************************************************************************************
117 template<>
119 struct IsCharacter<wchar_t>
120  : public TrueType
121 {};
123 //*************************************************************************************************
124 
125 
126 //*************************************************************************************************
128 template< typename T >
130 struct IsCharacter<const T>
131  : public IsCharacter<T>::Type
132 {};
134 //*************************************************************************************************
135 
136 
137 //*************************************************************************************************
139 template< typename T >
141 struct IsCharacter<volatile T>
142  : public IsCharacter<T>::Type
143 {};
145 //*************************************************************************************************
146 
147 
148 //*************************************************************************************************
150 template< typename T >
152 struct IsCharacter<const volatile T>
153  : public IsCharacter<T>::Type
154 {};
156 //*************************************************************************************************
157 
158 
159 //*************************************************************************************************
172 template< typename T >
174 //*************************************************************************************************
175 
176 } // namespace blaze
177 
178 #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
BoolConstant< true > TrueType
Type traits base class.The TrueType class is used as base class for type traits and value traits that...
Definition: TrueType.h:61
Compile time check for character types.This type trait tests whether or not the given template parame...
Definition: IsCharacter.h:76
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
constexpr bool IsCharacter_v
Auxiliary variable template for the IsCharacter type trait.The IsCharacter_v variable template provid...
Definition: IsCharacter.h:173
Header file for the TrueType type/value trait base class.