Blaze 3.9
Loading...
Searching...
No Matches
IsBoolean.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_UTIL_TYPETRAITS_ISBOOLEAN_H_
36#define _BLAZE_UTIL_TYPETRAITS_ISBOOLEAN_H_
37
38
39//*************************************************************************************************
40// Includes
41//*************************************************************************************************
42
44
45
46namespace blaze {
47
48//=================================================================================================
49//
50// CLASS DEFINITION
51//
52//=================================================================================================
53
54//*************************************************************************************************
73template< typename T >
75 : public FalseType
76{};
77//*************************************************************************************************
78
79
80//*************************************************************************************************
83template<>
84struct IsBoolean<bool>
85 : public TrueType
86{};
88//*************************************************************************************************
89
90
91//*************************************************************************************************
94template<>
95struct IsBoolean<const bool>
96 : public TrueType
97{};
99//*************************************************************************************************
100
101
102//*************************************************************************************************
105template<>
106struct IsBoolean<volatile bool>
107 : public TrueType
108{};
110//*************************************************************************************************
111
112
113//*************************************************************************************************
116template<>
117struct IsBoolean<const volatile bool>
118 : public TrueType
119{};
121//*************************************************************************************************
122
123
124//*************************************************************************************************
137template< typename T >
139//*************************************************************************************************
140
141} // namespace blaze
142
143#endif
Header file for the IntegralConstant class template.
constexpr bool IsBoolean_v
Auxiliary variable template for the IsBoolean type trait.
Definition IsBoolean.h:138
BoolConstant< false > FalseType
Type/value traits base class.
Definition IntegralConstant.h:121
BoolConstant< true > TrueType
Type traits base class.
Definition IntegralConstant.h:132
Compile time check for boolean types.
Definition IsBoolean.h:76