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

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

#include <Modulus.h>

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

Detailed Description

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

Compile time integral modulus operation.

The Modulus class template returns the result of a modulus operation between the two given template arguments T1 and T2. In order for Modulus to be able to perform the operation with the given two types, both arguments are required to have a nested member value. The result of the modulus operation can be accessed via the nested member value, the resulting type is available via the nested type ValueType.

blaze::Modulus< Int<3> , Int<2> >::value // Results in 1
blaze::Modulus< Long<3>, Int<2> >::ValueType // Results in long
blaze::Modulus< Int<3> , Long<2> >::ValueType // Results in long

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