Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
typetraits
IsStatic.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TYPETRAITS_ISSTATIC_H_
36
#define _BLAZE_MATH_TYPETRAITS_ISSTATIC_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/math/typetraits/IsMatrix.h
>
44
#include <
blaze/math/typetraits/IsVector.h
>
45
#include <
blaze/math/typetraits/Size.h
>
46
#include <
blaze/util/IntegralConstant.h
>
47
48
49
namespace
blaze {
50
51
//=================================================================================================
52
//
53
// CLASS DEFINITION
54
//
55
//=================================================================================================
56
57
//*************************************************************************************************
86
template
<
typename
T >
87
struct
IsStatic
88
:
public
BoolConstant
< ( IsVector_v<T> && Size_v<T,0UL> != DefaultSize_v ) ||
89
( IsMatrix_v<T> && Size_v<T,0UL> != DefaultSize_v &&
90
Size_v<T,1UL> != DefaultSize_v ) >
91
{};
92
//*************************************************************************************************
93
94
95
//*************************************************************************************************
108
template
<
typename
T >
109
constexpr
bool
IsStatic_v
=
IsStatic<T>::value
;
110
//*************************************************************************************************
111
112
}
// namespace blaze
113
114
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
IsMatrix.h
Header file for the IsMatrix type trait.
IsVector.h
Header file for the IsVector type trait.
blaze::IsStatic_v
constexpr bool IsStatic_v
Auxiliary variable template for the IsStatic type trait.
Definition
IsStatic.h:109
blaze::BoolConstant
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.
Definition
IntegralConstant.h:110
Size.h
Header file for the Size type trait.
blaze::IsStatic
Compile time check for static data types.
Definition
IsStatic.h:91
Generated by
1.18.0