ITK
4.9.0
Insight Segmentation and Registration Toolkit
|
#include <itkEnableIf.h>
simplified way to dispose of enable_if
.
TCondition | Condition type. It's expected to provide a boolean value through its Value member. |
TType | Type to return when the TCondition is (a) true (type). |
This overload automatically fetches TCondition
value. However, beware, it won't work with standard C++ traits or boost traits. Indeed, this enable_if
overload expects the value to follow UpperCamelCase ITK naming policy instead of the standard snake_case policy.
Example:
EnableIfC
DisableIf
Definition at line 104 of file itkEnableIf.h.