Blaze 3.9
Nor.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_UTIL_MPL_NOR_H_
36#define _BLAZE_UTIL_MPL_NOR_H_
37
38
39//*************************************************************************************************
40// Includes
41//*************************************************************************************************
42
46
47
48namespace blaze {
49
50//=================================================================================================
51//
52// CLASS DEFINITION
53//
54//=================================================================================================
55
56//*************************************************************************************************
73template< typename T1 // Type of the first mandatory operand
74 , typename T2 // Type of the second mandatory operand
75 , typename... Ts > // Types of the optional operands
76using Nor_t =
77 Bool_t< IsSame< Bools< false, T1::value, T2::value, (Ts::value)... >
78 , Bools< T1::value, T2::value, (Ts::value)..., false > >::value >;
79//*************************************************************************************************
80
81
82//*************************************************************************************************
95template< typename T1 // Type of the first mandatory operand
96 , typename T2 // Type of the second mandatory operand
97 , typename... Ts > // Types of the optional operands
98constexpr bool Nor_v = Nor_t<T1,T2,Ts...>::value;
99//*************************************************************************************************
100
101} // namespace blaze
102
103#endif
Header file for the Bools class template.
Header file for the IntegralConstant class template.
Header file for the IsSame and IsStrictlySame type traits.
constexpr bool Nor_v
Auxiliary variable template for the Nor_t alias.
Definition: Nor.h:98
Auxiliary tool for unwrapping a pack of variadic boolean values.
Definition: Bools.h:56
Generic wrapper for a compile time constant integral value.
Definition: IntegralConstant.h:74
Type relationship analysis.
Definition: IsSame.h:141