Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
util
typetraits
IsFloat.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_UTIL_TYPETRAITS_ISFLOAT_H_
36
#define _BLAZE_UTIL_TYPETRAITS_ISFLOAT_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
//*************************************************************************************************
73
template
<
typename
T >
74
struct
IsFloat
75
:
public
FalseType
76
{};
77
//*************************************************************************************************
78
79
80
//*************************************************************************************************
83
template
<>
84
struct
IsFloat
<float>
85
:
public
TrueType
86
{};
88
//*************************************************************************************************
89
90
91
//*************************************************************************************************
94
template
<>
95
struct
IsFloat<const float>
96
:
public
TrueType
97
{};
99
//*************************************************************************************************
100
101
102
//*************************************************************************************************
105
template
<>
106
struct
IsFloat
<volatile float>
107
:
public
TrueType
108
{};
110
//*************************************************************************************************
111
112
113
//*************************************************************************************************
116
template
<>
117
struct
IsFloat
<const volatile float>
118
:
public
TrueType
119
{};
121
//*************************************************************************************************
122
123
124
//*************************************************************************************************
137
template
<
typename
T >
138
constexpr
bool
IsFloat_v
=
IsFloat<T>::value
;
139
//*************************************************************************************************
140
141
}
// namespace blaze
142
143
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
blaze::IsFloat_v
constexpr bool IsFloat_v
Auxiliary variable template for the IsFloat type trait.
Definition
IsFloat.h:138
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::IsFloat
Compile time check for single precision floating point types.
Definition
IsFloat.h:76
Generated by
1.18.0