IsSMPAssignable.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TYPETRAITS_ISSMPASSIGNABLE_H_
36 #define _BLAZE_MATH_TYPETRAITS_ISSMPASSIGNABLE_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <blaze/util/FalseType.h>
46 
47 
48 namespace blaze {
49 
50 //=================================================================================================
51 //
52 // CLASS DEFINITION
53 //
54 //=================================================================================================
55 
56 //*************************************************************************************************
61 template< typename T, typename = void >
62 struct IsSMPAssignableHelper
63  : public FalseType
64 {};
66 //*************************************************************************************************
67 
68 
69 //*************************************************************************************************
71 template< typename T >
72 struct IsSMPAssignableHelper< T, Void_t< decltype( T::smpAssignable ) > >
73  : public BoolConstant< T::smpAssignable >
74 {};
76 //*************************************************************************************************
77 
78 
79 //*************************************************************************************************
112 template< typename T >
114  : public BoolConstant< IsSMPAssignableHelper<T>::value >
115 {};
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: FalseType.h:61
Header file for the Void type trait.
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
static constexpr bool smpAssignable
Compilation flag for SMP assignments.
Definition: CompressedMatrix.h:3113
void Void_t
Compile time type check.This type trait maps an arbitrary sequence of types to the type void...
Definition: Void.h:64
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
Compile time check for data types.This type trait tests whether or not the given template parameter i...
Definition: IsSMPAssignable.h:113
constexpr bool IsSMPAssignable_v
Auxiliary variable template for the IsSMPAssignable type trait.The IsSMPAssignable_v variable templat...
Definition: IsSMPAssignable.h:133
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.The BoolConstant class template represents ...
Definition: IntegralConstant.h:101
Header file for the IntegralConstant class template.