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

Compile time logical xor evaluation.The Xor class template performs at compile time a logical xor evaluation of the two given compile time conditions: More...

#include <Xor.h>

Inherits blaze::Bool< (T1::value^T2::value) >.

Detailed Description

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

Compile time logical xor evaluation.

The Xor class template performs at compile time a logical xor evaluation of the two given compile time conditions:

using namespace blaze;
typedef int Type;
Xor< IsSigned<Type> , IsUnsigned<Type> >::value // Evaluates to 1
Xor< IsIntegral<Type>, IsFloatingPoint<Type> >::value // Evaluates to 1
Xor< IsSigned<Type> , IsIntegral<Type> >::value // Evaluates to 0
Xor< IsUnsigned<Type>, IsFloatingPoint<Type> >::value // Evaluates to 0

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