Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
util
typetraits
IsShort.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_UTIL_TYPETRAITS_ISSHORT_H_
36
#define _BLAZE_UTIL_TYPETRAITS_ISSHORT_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
IsShort
76
:
public
FalseType
77
{};
78
//*************************************************************************************************
79
80
81
//*************************************************************************************************
84
template
<>
85
struct
IsShort
<short>
86
:
public
TrueType
87
{};
89
//*************************************************************************************************
90
91
92
//*************************************************************************************************
95
template
<>
96
struct
IsShort<const short>
97
:
public
TrueType
98
{};
100
//*************************************************************************************************
101
102
103
//*************************************************************************************************
106
template
<>
107
struct
IsShort
<volatile short>
108
:
public
TrueType
109
{};
111
//*************************************************************************************************
112
113
114
//*************************************************************************************************
117
template
<>
118
struct
IsShort
<const volatile short>
119
:
public
TrueType
120
{};
122
//*************************************************************************************************
123
124
125
//*************************************************************************************************
128
template
<>
129
struct
IsShort
<unsigned short>
130
:
public
TrueType
131
{};
133
//*************************************************************************************************
134
135
136
//*************************************************************************************************
139
template
<>
140
struct
IsShort
<const unsigned short>
141
:
public
TrueType
142
{};
144
//*************************************************************************************************
145
146
147
//*************************************************************************************************
150
template
<>
151
struct
IsShort
<volatile unsigned short>
152
:
public
TrueType
153
{};
155
//*************************************************************************************************
156
157
158
//*************************************************************************************************
161
template
<>
162
struct
IsShort
<const volatile unsigned short>
163
:
public
TrueType
164
{};
166
//*************************************************************************************************
167
168
169
//*************************************************************************************************
182
template
<
typename
T >
183
constexpr
bool
IsShort_v
=
IsShort<T>::value
;
184
//*************************************************************************************************
185
186
}
// namespace blaze
187
188
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
blaze::IsShort_v
constexpr bool IsShort_v
Auxiliary variable template for the IsShort type trait.
Definition
IsShort.h:183
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::IsShort
Compile time check for short integer types.
Definition
IsShort.h:77
Generated by
1.18.0