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.
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