Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Makes an instance of the common type of two types.
template<bool B, class Ty1, class Ty2>
struct conditional;
Parameters
Parameter |
Description |
---|---|
B |
The value that determines the resulting type. |
Ty1 |
The type to evaluate. |
Ty2 |
The type to evaluate. |
Remarks
An instance of this type modifier holds a modified-type that is the common type of Ty1 and Ty2, such as when Ty1 and Ty2 are the types of the second and third arguments to a Conditional Operator: ? : (?:) operation.
Requirements
Header: <type_traits>
Namespace: std