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

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

#include <Min.h>

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

Detailed Description

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

Compile time value evaluation.

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

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

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