Blaze  3.6
Minus.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_UTIL_MPL_MINUS_H_
36 #define _BLAZE_UTIL_MPL_MINUS_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
45 
46 
47 namespace blaze {
48 
49 //=================================================================================================
50 //
51 // CLASS DEFINITION
52 //
53 //=================================================================================================
54 
55 //*************************************************************************************************
71 template< typename T1 // Type of the first compile time value
72  , typename T2 > // Type of the second compile time value
73 using Minus_t =
74  IntegralConstant< CommonType_t< typename T1::ValueType, typename T2::ValueType >
75  , ( T1::value - T2::value ) >;
76 //*************************************************************************************************
77 
78 } // namespace blaze
79 
80 #endif
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
Header file for the CommonType type trait.
IntegralConstant< CommonType_t< typename T1::ValueType, typename T2::ValueType >,(T1::value - T2::value) > Minus_t
Compile time integral subtraction.The Minus_t alias template returns the difference of the two given ...
Definition: Minus.h:75
Header file for the IntegralConstant class template.