Export (0) Print
Expand All
Expand Minimize

enable_if Class

Makes an instance of type or an undefined type.

template<bool B, class Ty1>
    struct enable_if;

Parameter

Description

B

The value that determines the resulting type.

Ty1

The type to evaluate and modify.

An instance of this type modifier holds a modified-type that is either:

  • Ty1, if B is true.

  • undefined, if B is false.

Header: <type_traits>

Namespace: std

Show:
© 2014 Microsoft