SysTutorials

Linux Manual Pages › Section 3

stdexperimentalrangescommonreference(3)

std::experimental::ranges::CommonReference - std::experimental::ranges::CommonReference

Synopsis

Defined in header <experimental/ranges/concepts>
template < class T, class U >
concept bool CommonReference =
Same<ranges::common_reference_t<T, U>, ranges::common_reference_t<U, T>> &&  (ranges TS)
ConvertibleTo<T, ranges::common_reference_t<T, U>> &&
ConvertibleTo<U, ranges::common_reference_t<T, U>>;

The concept CommonReference<T, U> specifies that two types T and U share a common reference type (as computed by ranges::common_reference_t) to which both can be converted. CommonReference<T, U> is satisfied only if, given expressions t and u such that decltype((t)) is T and decltype((u)) is U,

See also

                 determine the common reference type of a set of types common_reference (class template)                  specifies that two types share a common type Common (concept)                  determine the common type of a set of types common_type (class template)