Export (0) Print
Expand All
Expand Minimize

conditional Class

Makes an instance of the common type of two types.

template<bool B, class Ty1, class Ty2>
    struct conditional;

Parameter

Description

B

The value that determines the resulting type.

Ty1

The type to evaluate.

Ty2

The type to evaluate.

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.

Header: <type_traits>

Namespace: std

Community Additions

ADD
Show:
© 2014 Microsoft