Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
util
typetraits
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/IntegralConstant.h
>
44
45
46
namespace
blaze {
47
48
//=================================================================================================
49
//
50
// CLASS DEFINITION
51
//
52
//=================================================================================================
53
54
//*************************************************************************************************
74
template
<
typename
T >
75
struct
IsCharacter
76
:
public
FalseType
77
{};
78
//*************************************************************************************************
79
80
81
//*************************************************************************************************
84
template
<>
85
struct
IsCharacter
<char>
86
:
public
TrueType
87
{};
89
//*************************************************************************************************
90
91
92
//*************************************************************************************************
95
template
<>
96
struct
IsCharacter<signed char>
97
:
public
TrueType
98
{};
100
//*************************************************************************************************
101
102
103
//*************************************************************************************************
106
template
<>
107
struct
IsCharacter
<unsigned char>
108
:
public
TrueType
109
{};
111
//*************************************************************************************************
112
113
114
//*************************************************************************************************
117
template
<>
118
struct
IsCharacter
<wchar_t>
119
:
public
TrueType
120
{};
122
//*************************************************************************************************
123
124
125
//*************************************************************************************************
128
template
<
typename
T >
129
struct
IsCharacter
<const T>
130
:
public
IsCharacter
<T>::Type
131
{};
133
//*************************************************************************************************
134
135
136
//*************************************************************************************************
139
template
<
typename
T >
140
struct
IsCharacter
<volatile T>
141
:
public
IsCharacter
<T>::Type
142
{};
144
//*************************************************************************************************
145
146
147
//*************************************************************************************************
150
template
<
typename
T >
151
struct
IsCharacter
<const volatile T>
152
:
public
IsCharacter
<T>::Type
153
{};
155
//*************************************************************************************************
156
157
158
//*************************************************************************************************
171
template
<
typename
T >
172
constexpr
bool
IsCharacter_v
=
IsCharacter<T>::value
;
173
//*************************************************************************************************
174
175
}
// namespace blaze
176
177
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
blaze::IsCharacter_v
constexpr bool IsCharacter_v
Auxiliary variable template for the IsCharacter type trait.
Definition
IsCharacter.h:172
blaze::FalseType
BoolConstant< false > FalseType
Type/value traits base class.
Definition
IntegralConstant.h:121
blaze::TrueType
BoolConstant< true > TrueType
Type traits base class.
Definition
IntegralConstant.h:132
blaze::IsCharacter
Compile time check for character types.
Definition
IsCharacter.h:77
Generated by
1.18.0