enable_if Class
Makes an instance of type or an undefined type.
template<bool B, class Ty1>
struct enable_if;
Parameters
Parameter |
Description |
---|---|
B |
The value that determines the resulting type. |
Ty1 |
The type to evaluate and modify. |
Remarks
An instance of this type modifier holds a modified-type that is either:
Ty1, if B is true.
undefined, if B is false.
Requirements
Header: <type_traits>
Namespace: std