blaze::Minus< T1, T2 > Struct Template Reference

Compile time integral subtraction.The Minus class template returns the difference of the two given template arguments T1 and T2. In order for Minus to be able to subtract the two types, both arguments are required to have a nested member value. The result of the subtraction can be accessed via the nested member value, the resulting type is available via the nested type ValueType. More...

#include <Minus.h>

Inherits blaze::IntegralC< CommonType< T1::ValueType, T2::ValueType >::Type,(T1::value-T2::value) >.

Detailed Description

template<typename T1, typename T2>
struct blaze::Minus< T1, T2 >

Compile time integral subtraction.

The Minus class template returns the difference of the two given template arguments T1 and T2. In order for Minus to be able to subtract the two types, both arguments are required to have a nested member value. The result of the subtraction can be accessed via the nested member value, the resulting type is available via the nested type ValueType.

blaze::Minus< Int<3> , Int<2> >::value // Results in 5
blaze::Minus< Long<3>, Int<2> >::ValueType // Results in long
blaze::Minus< Int<3> , Long<2> >::ValueType // Results in long

The documentation for this struct was generated from the following file: