Blaze  3.6
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 
44 
45 
46 namespace blaze {
47 
48 //=================================================================================================
49 //
50 // CLASS DEFINITION
51 //
52 //=================================================================================================
53 
54 //*************************************************************************************************
74 template< typename T >
76  : public FalseType
77 {};
78 //*************************************************************************************************
79 
80 
81 //*************************************************************************************************
83 template<>
85 struct IsCharacter<char>
86  : public TrueType
87 {};
89 //*************************************************************************************************
90 
91 
92 //*************************************************************************************************
94 template<>
96 struct IsCharacter<signed char>
97  : public TrueType
98 {};
100 //*************************************************************************************************
101 
102 
103 //*************************************************************************************************
105 template<>
107 struct IsCharacter<unsigned char>
108  : public TrueType
109 {};
111 //*************************************************************************************************
112 
113 
114 //*************************************************************************************************
116 template<>
118 struct IsCharacter<wchar_t>
119  : public TrueType
120 {};
122 //*************************************************************************************************
123 
124 
125 //*************************************************************************************************
127 template< typename T >
129 struct IsCharacter<const T>
130  : public IsCharacter<T>::Type
131 {};
133 //*************************************************************************************************
134 
135 
136 //*************************************************************************************************
138 template< typename T >
140 struct IsCharacter<volatile T>
141  : public IsCharacter<T>::Type
142 {};
144 //*************************************************************************************************
145 
146 
147 //*************************************************************************************************
149 template< typename T >
151 struct IsCharacter<const volatile T>
152  : public IsCharacter<T>::Type
153 {};
155 //*************************************************************************************************
156 
157 
158 //*************************************************************************************************
171 template< typename T >
173 //*************************************************************************************************
174 
175 } // namespace blaze
176 
177 #endif
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:72
BoolConstant< true > TrueType
Type traits base class.The TrueType class is used as base class for type traits and value traits that...
Definition: IntegralConstant.h:132
Compile time check for character types.This type trait tests whether or not the given template parame...
Definition: IsCharacter.h:75
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:172
Header file for the IntegralConstant class template.