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

Compile time value evaluation.The Max class template selects the larger of the two given template arguments T1 and T2. In order for Max to be able to determine the larger type, both arguments are required to have a nested member value. In case T1::value is larger than T2::value, the nested type definition Type is set to T1, otherwise it is set to T2. More...

#include <Max.h>

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

Detailed Description

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

Compile time value evaluation.

The Max class template selects the larger of the two given template arguments T1 and T2. In order for Max to be able to determine the larger type, both arguments are required to have a nested member value. In case T1::value is larger than T2::value, the nested type definition Type is set to T1, otherwise it is set to T2.

blaze::Max< Int<3> , Int<2> >::Type // Results in Int<3>
blaze::Max< Long<3>, Int<2> >::Type // Results in Long<3>
blaze::Max< Int<3> , Long<2> >::Type // Results in Int<3>

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