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

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

#include <Times.h>

Inherits blaze::IntegralConstant< CommonType_< T1::ValueType, T2::ValueType >,(T1::value *T2::value) >.

Detailed Description

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

Compile time integral multiplication.

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

blaze::Times< Int<3> , Int<2> >::value // Results in 6
blaze::Times< Long<3>, Int<2> >::ValueType // Results in long
blaze::Times< Int<3> , Long<2> >::ValueType // Results in long

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