![]() |
Arene Base
Fundamental Utilities For Safety Critical C++
|
A customization point to allow defining a common reference type for two types. More...
A customization point to allow defining a common reference type for two types.
| T | The first type for which to define a common reference. |
| U | The second type for which to define a common reference. |
| TQual | A template that applies cv-qualifiers to T. |
| UQual | A template that applies cv-qualifiers to U. |
A specialization of this trait must be a partial specialization across T and U and must satisfy the following constraints:
std::is_same<T,decay_t<T>>::value must be true.std::is_same<U,decay_t<U>>::value must be true.T or U must be a user-defined type.If there is a common reference type between the two types, the specialization must define a member type named type that satisfies the following constraints:
TQual<T>::type must be convertible to type.UQual<U>::type must be convertible to type.In addition, basic_common_reference<T,U,TQual,UQual>::type and basic_common_reference<U,T,UQual,TQual>::type must be the same type or both must not define a member type named type .