IsRowMajorMatrix.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TYPETRAITS_ISROWMAJORMATRIX_H_
36 #define _BLAZE_MATH_TYPETRAITS_ISROWMAJORMATRIX_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <utility>
46 #include <blaze/util/FalseType.h>
47 #include <blaze/util/TrueType.h>
49 
50 
51 namespace blaze {
52 
53 //=================================================================================================
54 //
55 // CLASS DEFINITION
56 //
57 //=================================================================================================
58 
59 //*************************************************************************************************
64 template< typename T >
65 struct IsRowMajorMatrixHelper
66 {
67  private:
68  //**********************************************************************************************
69  template< typename MT >
70  static TrueType test( const Matrix<MT,rowMajor>& );
71 
72  static FalseType test( ... );
73  //**********************************************************************************************
74 
75  public:
76  //**********************************************************************************************
77  using Type = decltype( test( std::declval< RemoveCV_<T> >() ) );
78  //**********************************************************************************************
79 };
81 //*************************************************************************************************
82 
83 
84 //*************************************************************************************************
109 template< typename T >
111  : public IsRowMajorMatrixHelper<T>::Type
112 {};
113 //*************************************************************************************************
114 
115 } // namespace blaze
116 
117 #endif
BoolConstant< false > FalseType
Type/value traits base class.The FalseType class is used as base class for type traits and value trai...
Definition: FalseType.h:61
Header file for the FalseType type/value trait base class.
Header file for the RemoveCV type trait.
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
Header file for the matrix storage order types.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Compile time check for row-major matrix types.This type trait tests whether or not the given template...
Definition: IsRowMajorMatrix.h:110
Header file for the Matrix base class.
Header file for the TrueType type/value trait base class.