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

Compile time type comparison.The Greater alias declaration compares the two given types using the greater-than operator ('>'). In case T1::value is greater than T2::value, the nested value member is set to 1. Otherwise it is set to 0. More...

#include <Greater.h>

Inherits blaze::Bool< C >.

Detailed Description

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

Compile time type comparison.

The Greater alias declaration compares the two given types using the greater-than operator ('>'). In case T1::value is greater than T2::value, the nested value member is set to 1. Otherwise it is set to 0.

using namespace blaze;
Greater< Int<5> , Int<2> >::value // Evaluates to true
Greater< Int<5> , Long<2> >::value // Evaluates to true
Greater< Long<2>, Int<2> >::value // Evaluates to false
Greater< Int<2> , Long<5> >::value // Evaluates to false
Greater< Int<5> , Int<2> >::ValueType // Results in bool

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