Blaze  3.6
IsTVecMatMultExpr.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TYPETRAITS_ISTVECMATMULTEXPR_H_
36 #define _BLAZE_MATH_TYPETRAITS_ISTVECMATMULTEXPR_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
45 
46 
47 namespace blaze {
48 
49 //=================================================================================================
50 //
51 // CLASS DEFINITION
52 //
53 //=================================================================================================
54 
55 //*************************************************************************************************
60 template< typename T >
61 struct IsTVecMatMultExprHelper
62 {
63  private:
64  //**********************************************************************************************
65  static T* create();
66 
67  template< typename VT >
68  static TrueType test( const TVecMatMultExpr<VT>* );
69 
70  template< typename VT >
71  static TrueType test( const volatile TVecMatMultExpr<VT>* );
72 
73  static FalseType test( ... );
74  //**********************************************************************************************
75 
76  public:
77  //**********************************************************************************************
78  using Type = decltype( test( create() ) );
79  //**********************************************************************************************
80 };
82 //*************************************************************************************************
83 
84 
85 //*************************************************************************************************
99 template< typename T >
101  : public IsTVecMatMultExprHelper<T>::Type
102 {};
103 //*************************************************************************************************
104 
105 
106 //*************************************************************************************************
111 template< typename T >
112 struct IsTVecMatMultExpr<T&>
113  : public FalseType
114 {};
116 //*************************************************************************************************
117 
118 
119 //*************************************************************************************************
132 template< typename T >
134 //*************************************************************************************************
135 
136 } // namespace blaze
137 
138 #endif
BoolConstant< false > FalseType
Type/value traits base class.The FalseType class is used as base class for type traits and value trai...
Definition: IntegralConstant.h:121
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:72
BoolConstant< true > TrueType
Type traits base class.The TrueType class is used as base class for type traits and value traits that...
Definition: IntegralConstant.h:132
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
constexpr bool IsTVecMatMultExpr_v
Auxiliary variable template for the IsTVecMatMultExpr type trait.The IsTVecMatMultExpr_v variable tem...
Definition: IsTVecMatMultExpr.h:133
Header file for the TVecMatMultExpr base class.
Compile time check whether the given type is a vector/matrix multiplication expression template....
Definition: IsTVecMatMultExpr.h:100
Header file for the IntegralConstant class template.