User Tools

Site Tools


common_type

common type - the one that, for two given types, results from applying the ternary operator (?:) to two expressions of those respective types. Note that, for arithmetic types, the common type is the same type that would result for binary arithmetic operators applied to those types; for class types, however, the common type, if one exists, must be one of the two given types (modulo cv-qualifications); i.e., either they are the same type or there exists an unambiguous implicit conversion sequence from one to the other but not vice versa. auto Return (1186)” (EMCppSfe 2021)

common_type.txt · Last modified: 2024/04/28 03:34 (external edit)