This documentation is archived and is not being maintained.
common_type Class
Visual Studio 2010
Makes an instance of the common type of two types.
template<class Ty0, Ty1>
struct common_type;
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.
Show: