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 
44 #include <blaze/util/FalseType.h>
45 #include <blaze/util/TrueType.h>
46 
47 
48 namespace blaze {
49 
50 //=================================================================================================
51 //
52 // CLASS DEFINITION
53 //
54 //=================================================================================================
55 
56 //*************************************************************************************************
89 template< typename T >
91  : public FalseType
92 {};
93 //*************************************************************************************************
94 
95 
96 //*************************************************************************************************
101 template< typename VT, AlignmentFlag AF, bool TF, bool DF, size_t... CSAs >
102 struct IsSubvector< Subvector<VT,AF,TF,DF,CSAs...> >
103  : public TrueType
104 {};
106 //*************************************************************************************************
107 
108 
109 //*************************************************************************************************
114 template< typename VT, AlignmentFlag AF, bool TF, bool DF, size_t... CSAs >
115 struct IsSubvector< const Subvector<VT,AF,TF,DF,CSAs...> >
116  : public TrueType
117 {};
119 //*************************************************************************************************
120 
121 
122 //*************************************************************************************************
127 template< typename VT, AlignmentFlag AF, bool TF, bool DF, size_t... CSAs >
128 struct IsSubvector< volatile Subvector<VT,AF,TF,DF,CSAs...> >
129  : public TrueType
130 {};
132 //*************************************************************************************************
133 
134 
135 //*************************************************************************************************
140 template< typename VT, AlignmentFlag AF, bool TF, bool DF, size_t... CSAs >
141 struct IsSubvector< const volatile Subvector<VT,AF,TF,DF,CSAs...> >
142  : public TrueType
143 {};
145 //*************************************************************************************************
146 
147 
148 //*************************************************************************************************
161 template< typename T >
163 //*************************************************************************************************
164 
165 } // namespace blaze
166 
167 #endif
AlignmentFlag
Alignment flag for (un-)aligned vectors and matrices.Via these flags it is possible to specify subvec...
Definition: AlignmentFlag.h:62
Header file for the FalseType type/value trait base class.
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:71
BoolConstant< true > TrueType
Type traits base class.The TrueType class is used as base class for type traits and value traits that...
Definition: TrueType.h:61
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
Header file for all forward declarations for views.
constexpr bool IsSubvector_v
Auxiliary variable template for the IsSubvector type trait.The IsSubvector_v variable template provid...
Definition: IsSubvector.h:162
Compile time check for subvectors.This type trait tests whether or not the given template parameter i...
Definition: IsSubvector.h:90
Header file for the TrueType type/value trait base class.