SubAssign.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_FUNCTORS_SUBASSIGN_H_
36 #define _BLAZE_MATH_FUNCTORS_SUBASSIGN_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <blaze/system/Inline.h>
44 
45 
46 namespace blaze {
47 
48 //=================================================================================================
49 //
50 // CLASS DEFINITION
51 //
52 //=================================================================================================
53 
54 //*************************************************************************************************
58 struct SubAssign
59 {
60  //**********************************************************************************************
63  explicit inline SubAssign()
64  {}
65  //**********************************************************************************************
66 
67  //**********************************************************************************************
74  template< typename T1, typename T2 >
75  BLAZE_ALWAYS_INLINE void operator()( T1& a, const T2& b ) const
76  {
77  subAssign( a, b );
78  }
79  //**********************************************************************************************
80 };
81 //*************************************************************************************************
82 
83 } // namespace blaze
84 
85 #endif
Generic wrapper for the subAssign() function.
Definition: SubAssign.h:58
SubAssign()
Default constructor of the SubAssign functor.
Definition: SubAssign.h:63
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
System settings for the inline keywords.
BLAZE_ALWAYS_INLINE void operator()(T1 &a, const T2 &b) const
Calls the subAssign() function with the given objects/values.
Definition: SubAssign.h:75