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 
43 #include <blaze/util/mpl/Bool.h>
44 #include <blaze/util/mpl/Bools.h>
46 
47 
48 namespace blaze {
49 
50 //=================================================================================================
51 //
52 // CLASS DEFINITION
53 //
54 //=================================================================================================
55 
56 //*************************************************************************************************
73 template< 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
76 using Nor =
77  Bool< IsSame< Bools< false, T1::value, T2::value, (Ts::value)... >
78  , Bools< T1::value, T2::value, (Ts::value)..., false > >::value >;
79 //*************************************************************************************************
80 
81 
82 //*************************************************************************************************
95 template< 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
98 constexpr bool Nor_v = Nor<T1,T2,Ts...>::value;
99 //*************************************************************************************************
100 
101 } // namespace blaze
102 
103 #endif
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:71
Header file for the IsSame and IsStrictlySame type traits.
Bool< IsSame< Bools< false, T1::value, T2::value,(Ts::value)... >, Bools< T1::value, T2::value,(Ts::value)..., false > >::value > Nor
Compile time logical &#39;not or&#39; evaluation.The Nor alias declaration performs at compile time a logical...
Definition: Nor.h:78
IntegralConstant< bool, C > Bool
Compile time integral constant wrapper for bool.The Bool class template represents an integral wrappe...
Definition: Bool.h:70
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
constexpr bool Nor_v
Auxiliary variable template for the Nor alias.The Nor_v variable template provides a convenient short...
Definition: Nor.h:98
Auxiliary tool for unwrapping a pack of variadic boolean values.The Bools class template represents a...
Definition: Bools.h:55
Header file for the Bools class template.
Header file for the Bool class template.