Blaze  3.6
IsCUDAAssignable.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TYPETRAITS_ISCUDAASSIGNABLE_H_
36 #define _BLAZE_MATH_TYPETRAITS_ISCUDAASSIGNABLE_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
46 #include <blaze/util/EnableIf.h>
47 
48 
49 namespace blaze {
50 
51 //=================================================================================================
52 //
53 // CLASS DEFINITION
54 //
55 //=================================================================================================
56 
57 //*************************************************************************************************
59 template< typename T > struct IsCUDAAssignable;
61 //*************************************************************************************************
62 
63 
64 //*************************************************************************************************
69 template< typename T, typename = void >
70 struct IsCUDAAssignableHelper
71  : public FalseType
72 {};
73 
74 template< typename T >
75 struct IsCUDAAssignableHelper< T, Void_t< decltype( T::cudaAssignable ) > >
76  : public BoolConstant< T::cudaAssignable >
77 {};
78 
79 template< typename T >
80 struct IsCUDAAssignableHelper< T, EnableIf_t< IsExpression_v<T> > >
81  : public IsCUDAAssignable< typename T::ResultType >::Type
82 {};
84 //*************************************************************************************************
85 
86 
87 //*************************************************************************************************
120 template< typename T >
122  : public IsCUDAAssignableHelper<T>
123 {};
124 //*************************************************************************************************
125 
126 
127 //*************************************************************************************************
140 template< typename T >
142 //*************************************************************************************************
143 
144 } // namespace blaze
145 
146 #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.
void Void_t
Compile time type check.This type trait maps an arbitrary sequence of types to the type void....
Definition: Void.h:64
typename EnableIf< Condition, T >::Type EnableIf_t
Auxiliary type for the EnableIf class template.The EnableIf_t alias declaration provides a convenient...
Definition: EnableIf.h:138
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
constexpr bool IsExpression_v
Auxiliary variable template for the IsExpression type trait.The IsExpression_v variable template prov...
Definition: IsExpression.h:130
constexpr bool IsCUDAAssignable_v
Auxiliary variable template for the IsCUDAAssignable type trait.The IsCUDAAssignable_v variable templ...
Definition: IsCUDAAssignable.h:141
Compile time check for data types.This type trait tests whether or not the given template parameter i...
Definition: IsCUDAAssignable.h:121
Header file for the EnableIf class template.
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.
Header file for the IsExpression type trait class.