Blaze  3.6
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 
45 
46 
47 namespace blaze {
48 
49 //=================================================================================================
50 //
51 // CLASS DEFINITION
52 //
53 //=================================================================================================
54 
55 //*************************************************************************************************
60 template< typename T, typename = void >
61 struct IsSMPAssignableHelper
62  : public FalseType
63 {};
65 //*************************************************************************************************
66 
67 
68 //*************************************************************************************************
70 template< typename T >
71 struct IsSMPAssignableHelper< T, Void_t< decltype( T::smpAssignable ) > >
72  : public BoolConstant< T::smpAssignable >
73 {};
75 //*************************************************************************************************
76 
77 
78 //*************************************************************************************************
111 template< typename T >
113  : public BoolConstant< IsSMPAssignableHelper<T>::value >
114 {};
115 //*************************************************************************************************
116 
117 
118 //*************************************************************************************************
131 template< typename T >
133 //*************************************************************************************************
134 
135 } // namespace blaze
136 
137 #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
Header file for the Void type trait.
constexpr bool IsSMPAssignable_v
Auxiliary variable template for the IsSMPAssignable type trait.The IsSMPAssignable_v variable templat...
Definition: IsSMPAssignable.h:132
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:72
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:112
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.The BoolConstant alias template represents ...
Definition: IntegralConstant.h:110
Header file for the IntegralConstant class template.