Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
util
typetraits
IsComplex.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_UTIL_TYPETRAITS_ISCOMPLEX_H_
36
#define _BLAZE_UTIL_TYPETRAITS_ISCOMPLEX_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/util/Complex.h
>
44
#include <
blaze/util/IntegralConstant.h
>
45
46
47
namespace
blaze {
48
49
//=================================================================================================
50
//
51
// CLASS DEFINITION
52
//
53
//=================================================================================================
54
55
//*************************************************************************************************
74
template
<
typename
T >
75
struct
IsComplex
76
:
public
FalseType
77
{};
78
//*************************************************************************************************
79
80
81
//*************************************************************************************************
84
template
<
typename
T >
85
struct
IsComplex
< complex<T> >
86
:
public
TrueType
87
{};
89
//*************************************************************************************************
90
91
92
//*************************************************************************************************
95
template
<
typename
T >
96
struct
IsComplex< const
complex
<T> >
97
:
public
TrueType
98
{};
100
//*************************************************************************************************
101
102
103
//*************************************************************************************************
106
template
<
typename
T >
107
struct
IsComplex
< volatile complex<T> >
108
:
public
TrueType
109
{};
111
//*************************************************************************************************
112
113
114
//*************************************************************************************************
117
template
<
typename
T >
118
struct
IsComplex
< const volatile complex<T> >
119
:
public
TrueType
120
{};
122
//*************************************************************************************************
123
124
125
//*************************************************************************************************
138
template
<
typename
T >
139
constexpr
bool
IsComplex_v
=
IsComplex<T>::value
;
140
//*************************************************************************************************
141
142
}
// namespace blaze
143
144
#endif
Complex.h
Header file for the complex data type.
IntegralConstant.h
Header file for the IntegralConstant class template.
complex
Complex data type of the Blaze library.
blaze::IsComplex_v
constexpr bool IsComplex_v
Auxiliary variable template for the IsComplex type trait.
Definition
IsComplex.h:139
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::IsComplex
Compile time check for complex types.
Definition
IsComplex.h:77
Generated by
1.18.0