Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Selects one of two types, depending on the specified condition.
template<bool B, class Ty1, class Ty2>
struct conditional;
Parameters
Parameter |
Description |
|---|---|
B |
The value that determines the selected type. |
Ty1 |
The type to evaluate. |
Ty2 |
The type to evaluate. |
Remarks
conditional<B, Ty1, Ty2>::type evaluates to Ty1 when B evaluates to true, and evaluates to Ty2 when B evaluates to false.
Requirements
Header: <type_traits>
Namespace: std