Blaze 3.9
IsColumnMajorMatrix.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_MATH_TYPETRAITS_ISCOLUMNMAJORMATRIX_H_
36#define _BLAZE_MATH_TYPETRAITS_ISCOLUMNMAJORMATRIX_H_
37
38
39//*************************************************************************************************
40// Includes
41//*************************************************************************************************
42
43#include <utility>
47
48
49namespace blaze {
50
51//=================================================================================================
52//
53// CLASS DEFINITION
54//
55//=================================================================================================
56
57//*************************************************************************************************
62template< typename MT >
63TrueType isColumnMajorMatrix_backend( const volatile Matrix<MT,columnMajor>* );
64
65FalseType isColumnMajorMatrix_backend( ... );
67//*************************************************************************************************
68
69
70//*************************************************************************************************
95template< typename T >
97 : public decltype( isColumnMajorMatrix_backend( std::declval<T*>() ) )
98{};
99//*************************************************************************************************
100
101
102//*************************************************************************************************
107template< typename T >
108struct IsColumnMajorMatrix<T&>
109 : public FalseType
110{};
112//*************************************************************************************************
113
114
115//*************************************************************************************************
128template< typename T >
130//*************************************************************************************************
131
132} // namespace blaze
133
134#endif
Header file for the IntegralConstant class template.
constexpr bool IsColumnMajorMatrix_v
Auxiliary variable template for the IsColumnMajorMatrix type trait.
Definition: IsColumnMajorMatrix.h:129
BoolConstant< true > TrueType
Type traits base class.
Definition: IntegralConstant.h:132
BoolConstant< false > FalseType
Type/value traits base class.
Definition: IntegralConstant.h:121
Header file for the matrix storage order types.
Header file for all forward declarations for expression class templates.
Generic wrapper for a compile time constant integral value.
Definition: IntegralConstant.h:74
Compile time check for column-major matrix types.
Definition: IsColumnMajorMatrix.h:98