Blaze  3.6
DisableIf.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_UTIL_DISABLEIF_H_
36 #define _BLAZE_UTIL_DISABLEIF_H_
37 
38 
39 namespace blaze {
40 
41 //=================================================================================================
42 //
43 // CLASS DEFINITION
44 //
45 //=================================================================================================
46 
47 //*************************************************************************************************
94 template< bool Condition // Compile time condition
95  , typename T=void > // The type to be instantiated
96 struct DisableIf
97 {
98  //**********************************************************************************************
99  using Type = T;
100  //**********************************************************************************************
101 };
102 //*************************************************************************************************
103 
104 
105 //*************************************************************************************************
116 template< typename T > // The type to be instantiated
117 struct DisableIf<true,T>
118 {};
120 //*************************************************************************************************
121 
122 
123 //*************************************************************************************************
136 template< bool Condition // Compile time condition
137  , typename T=void > // The type to be instantiated
139 //*************************************************************************************************
140 
141 } // namespace blaze
142 
143 #endif
T Type
The instantiated type.
Definition: DisableIf.h:99
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
Substitution Failure Is Not An Error (SFINAE) class.The DisableIf class template is an auxiliary tool...
Definition: DisableIf.h:96
typename DisableIf< Condition, T >::Type DisableIf_t
Auxiliary type for the DisableIf class template.The DisableIf_t alias declaration provides a convenie...
Definition: DisableIf.h:138