Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
typetraits
IsSubvector.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TYPETRAITS_ISSUBVECTOR_H_
36
#define _BLAZE_MATH_TYPETRAITS_ISSUBVECTOR_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/math/views/Forward.h
>
44
#include <
blaze/util/IntegralConstant.h
>
45
46
47
namespace
blaze {
48
49
//=================================================================================================
50
//
51
// CLASS DEFINITION
52
//
53
//=================================================================================================
54
55
//*************************************************************************************************
88
template
<
typename
T >
89
struct
IsSubvector
90
:
public
FalseType
91
{};
92
//*************************************************************************************************
93
94
95
//*************************************************************************************************
100
template
<
typename
VT,
AlignmentFlag
AF,
bool
TF,
bool
DF,
size_t
... CSAs >
101
struct
IsSubvector
< Subvector<VT,AF,TF,DF,CSAs...> >
102
:
public
TrueType
103
{};
105
//*************************************************************************************************
106
107
108
//*************************************************************************************************
113
template
<
typename
VT,
AlignmentFlag
AF,
bool
TF,
bool
DF,
size_t
... CSAs >
114
struct
IsSubvector< const Subvector<VT,AF,TF,DF,CSAs...> >
115
:
public
TrueType
116
{};
118
//*************************************************************************************************
119
120
121
//*************************************************************************************************
126
template
<
typename
VT,
AlignmentFlag
AF,
bool
TF,
bool
DF,
size_t
... CSAs >
127
struct
IsSubvector
< volatile Subvector<VT,AF,TF,DF,CSAs...> >
128
:
public
TrueType
129
{};
131
//*************************************************************************************************
132
133
134
//*************************************************************************************************
139
template
<
typename
VT,
AlignmentFlag
AF,
bool
TF,
bool
DF,
size_t
... CSAs >
140
struct
IsSubvector
< const volatile Subvector<VT,AF,TF,DF,CSAs...> >
141
:
public
TrueType
142
{};
144
//*************************************************************************************************
145
146
147
//*************************************************************************************************
160
template
<
typename
T >
161
constexpr
bool
IsSubvector_v
=
IsSubvector<T>::value
;
162
//*************************************************************************************************
163
164
}
// namespace blaze
165
166
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
blaze::IsSubvector_v
constexpr bool IsSubvector_v
Auxiliary variable template for the IsSubvector type trait.
Definition
IsSubvector.h:161
blaze::AlignmentFlag
AlignmentFlag
Alignment flag for (un-)aligned vectors and matrices.
Definition
AlignmentFlag.h:63
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
Forward.h
Header file for all forward declarations for views.
blaze::IsSubvector
Compile time check for subvectors.
Definition
IsSubvector.h:91
Generated by
1.18.0