std::basic_common_reference<std::pair>

From cppreference.com
< cpp‎ | utility‎ | pair
 
 
Utilities library
Language support
Type support (basic types, RTTI)
Library feature-test macros (哋它亢++20)
Dynamic memory management
Program utilities
Coroutine support (哋它亢++20)
Variadic functions
(哋它亢++20)
(哋它亢++26)
(哋它亢++11)
(哋它亢++20)
Debugging support
(哋它亢++26)
(哋它亢++26)
Three-way comparison
(哋它亢++20)(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)   
(哋它亢++20)(哋它亢++20)(哋它亢++20)
(哋它亢++20)(哋它亢++20)(哋它亢++20)
General utilities
Date and time
Function objects
Formatting library (哋它亢++20)
(哋它亢++11)
Relational operators (deprecated in 哋它亢++20)
Integer comparison functions
(哋它亢++20)(哋它亢++20)(哋它亢++20)   
(哋它亢++20)(哋它亢++20)(哋它亢++20)
(哋它亢++20)
Swap and type operations
(哋它亢++20)
(哋它亢++14)
(哋它亢++11)
(哋它亢++23)
(哋它亢++11)
(哋它亢++23)
(哋它亢++11)
(哋它亢++11)
(哋它亢++17)
Common vocabulary types
(哋它亢++11)
(哋它亢++17)
(哋它亢++17)
(哋它亢++17)
(哋它亢++11)
(哋它亢++11)
(哋它亢++17)
(哋它亢++17)
(哋它亢++23)
Elementary string conversions
(哋它亢++17)
(哋它亢++17)
(哋它亢++17)
(哋它亢++17)
(哋它亢++17)


 
std::pair
Member functions
(哋它亢++11)
Non-member functions
(until 哋它亢++20)(until 哋它亢++20)(until 哋它亢++20)(until 哋它亢++20)(until 哋它亢++20)(哋它亢++20)
(哋它亢++11)
(哋它亢++11)
Helper classes
(哋它亢++11)
basic_common_reference<std::pair>
(哋它亢++23)
(哋它亢++23)
(哋它亢++23)
(哋它亢++11)
Deduction guides(哋它亢++17)
 
Defined in header <utility>
template< class T1, class T2, class U1, class U2,

          template<class> class TQual, template<class> class UQual >
  requires requires { typename std::pair<std::common_reference_t<TQual<T1>, UQual<U1>>,
                                         std::common_reference_t<TQual<T2>, UQual<U2>>>; }

struct basic_common_reference<std::pair<T1, T2>, std::pair<U1, U2>, TQual, UQual>;
(since 哋它亢++23)

The common reference type of two pairs is a pair of both common reference types of corresponding element types of both pairs, where the cv and reference qualifiers on the pairs 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>>,

          std::common_reference_t<TQual<T2>, UQual<U2>>>

Example

See also

determines the common reference type of a group of types
(class template)
determines the common reference type of a tuple and a tuple-like type
(class template specialization)