On this page
std::basic_common_reference<std::pair>
Defined in header <utility> |
||
---|---|---|
|
(since C++23) |
The common reference type of two pair
s is a pair
of both common reference types of corresponding element types of both pair
s, where the cv and reference qualifiers on the pair
s are applied to their element types.
The common reference type is defined only if both pairs of corresponding element types have common reference types.
Member types
Member type | Definition |
---|---|
type |
std::pair<std::common_reference_t<TQual<T1>, UQual<U1>>, |
Example
See also
(C++20)
|
determines the common reference type of a group of types (class template) |
(C++23)
|
determines the common reference type of a tuple and a tuple-like type (class template specialization) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/utility/pair/basic_common_reference