Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
typetraits
IsSquare.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TYPETRAITS_ISSQUARE_H_
36
#define _BLAZE_MATH_TYPETRAITS_ISSQUARE_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
//*************************************************************************************************
86
template
<
typename
T >
87
struct
IsSquare
88
:
public
FalseType
89
{};
90
//*************************************************************************************************
91
92
93
//*************************************************************************************************
98
template
<
typename
T >
99
struct
IsSquare
< const T >
100
:
public
IsSquare
<T>
101
{};
103
//*************************************************************************************************
104
105
106
//*************************************************************************************************
111
template
<
typename
T >
112
struct
IsSquare< volatile T >
113
:
public
IsSquare<T>
114
{};
116
//*************************************************************************************************
117
118
119
//*************************************************************************************************
124
template
<
typename
T >
125
struct
IsSquare
< const volatile T >
126
:
public
IsSquare
<T>
127
{};
129
//*************************************************************************************************
130
131
132
//*************************************************************************************************
145
template
<
typename
T >
146
constexpr
bool
IsSquare_v
=
IsSquare<T>::value
;
147
//*************************************************************************************************
148
149
}
// namespace blaze
150
151
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
blaze::IsSquare_v
constexpr bool IsSquare_v
Auxiliary variable template for the IsSquare type trait.
Definition
IsSquare.h:146
blaze::FalseType
BoolConstant< false > FalseType
Type/value traits base class.
Definition
IntegralConstant.h:121
blaze::IsSquare
Compile time check for square matrices.
Definition
IsSquare.h:89
Generated by
1.18.0