All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IfNot.h
Go to the documentation of this file.
1 //=================================================================================================
20 //=================================================================================================
21 
22 #ifndef _BLAZE_UTIL_MPL_IFNOT_H_
23 #define _BLAZE_UTIL_MPL_IFNOT_H_
24 
25 
26 //*************************************************************************************************
27 // Includes
28 //*************************************************************************************************
29 
30 #include <blaze/util/SelectType.h>
31 
32 
33 namespace blaze {
34 
35 //=================================================================================================
36 //
37 // CLASS DEFINITION
38 //
39 //=================================================================================================
40 
41 //*************************************************************************************************
49 template< typename T1 // Type of the condition
50  , typename T2 // Type to be selected if T1::value=false
51  , typename T3 > // Type to be selected if T1::value=true
52 struct IfNot
53 {
54  public:
55  //**********************************************************************************************
57  typedef typename SelectType< !T1::value, T2, T3 >::Type Type;
59  //**********************************************************************************************
60 };
61 //*************************************************************************************************
62 
63 } // namespace blaze
64 
65 #endif