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

Compile time value evaluation.The Maximum alias declaration selects the larger of the two given template arguments T1 and T2. In order for Maximum to be able to determine the larger type, both arguments are required to have a nested member value. The result of the minimum operation can be accessed via the nested member value, the resulting type is available via the nested type ValueType. More...

#include <Maximum.h>

Inherits If_< Less< T1, T2 >, T2, T1 >.

Detailed Description

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

Compile time value evaluation.

The Maximum alias declaration selects the larger of the two given template arguments T1 and T2. In order for Maximum to be able to determine the larger type, both arguments are required to have a nested member value. The result of the minimum operation can be accessed via the nested member value, the resulting type is available via the nested type ValueType.

blaze::Maximum< Int<3> , Int<2> >::value // Results in 3
blaze::Maximum< Long<3>, Int<2> >::ValueType // Results in long
blaze::Maximum< Int<3> , Long<2> >::ValueType // Results in int

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