Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
arene::base::basic_common_reference< T, U, TQual, UQual > Class Template Reference

A customization point to allow defining a common reference type for two types. More...

Detailed Description

template<class T, class U, template< class > class TQual, template< class > class UQual>
class arene::base::basic_common_reference< T, U, TQual, UQual >

A customization point to allow defining a common reference type for two types.

Template Parameters
TThe first type for which to define a common reference.
UThe second type for which to define a common reference.
TQualA template that applies cv-qualifiers to T.
UQualA 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:

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 .


The documentation for this class was generated from the following file: