All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Not.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_UTIL_MPL_NOT_H_
36 #define _BLAZE_UTIL_MPL_NOT_H_
37 
38 
39 namespace blaze {
40 
41 //=================================================================================================
42 //
43 // CLASS DEFINITION
44 //
45 //=================================================================================================
46 
47 //*************************************************************************************************
61 template< typename C > // Condition to be negated
62 struct Not
63 {
64  public:
65  //**********************************************************************************************
67  enum { value = !C::value };
69  //**********************************************************************************************
70 };
71 //*************************************************************************************************
72 
73 } // namespace blaze
74 
75 #endif
Compile time type negation.The Not class template negates the given compile time condition. In case the given condition would evaluate to true, the nested member enumeration is set to false and vice versa:
Definition: Not.h:62