Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Makes an instance of the common type of two types.
template<class Ty0, Ty1>
struct common_type;
Parameters
Parameter |
Description |
|---|---|
Ty0 |
The type to evaluate. |
Ty1 |
The type to evaluate. |
Remarks
An instance of this type modifier holds a modified-type that is:
Ty, if the template parameter pack has exactly one argument.
the type of the expression decltype(true ? Tgen() : Ugen()), where Tgen() is an imaginary function returning a value of type T&& and Ugen() is an imaginary function returning a value of type U&&, if the template parameter pack has exactly two arguments T and U.
Requirements
Header: <type_traits>
Namespace: std