Blaze 3.9
Loading...
Searching...
No Matches
Xor.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_UTIL_MPL_XOR_H_
36#define _BLAZE_UTIL_MPL_XOR_H_
37
38
39//*************************************************************************************************
40// Includes
41//*************************************************************************************************
42
44
45
46namespace blaze {
47
48//=================================================================================================
49//
50// CLASS DEFINITION
51//
52//=================================================================================================
53
54//*************************************************************************************************
72template< typename T1 // Type of the first operand
73 , typename T2 > // Type of the second operand
74using Xor_t = Bool_t< ( T1::value ^ T2::value ) >;
75//*************************************************************************************************
76
77
78//*************************************************************************************************
91template< typename T1 // Type of the first operand
92 , typename T2 > // Type of the second operand
93constexpr bool Xor_v = Xor_t<T1,T2>::value;
94//*************************************************************************************************
95
96} // namespace blaze
97
98#endif
Header file for the IntegralConstant class template.
Bool_t<(T1::value ^ T2::value) > Xor_t
Compile time bitwise XOR evaluation.
Definition Xor.h:74
constexpr bool Xor_v
Auxiliary variable template for the Xor_t alias.
Definition Xor.h:93
IntegralConstant< bool, B > Bool_t
Compile time integral constant wrapper for bool.
Definition IntegralConstant.h:153