|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
(C++11) | ||||
| Non-member functions | ||||
(until C++20)(until C++20)(until C++20)(until C++20)(until C++20)(C++20) | ||||
(C++11) | ||||
(C++11) | ||||
| Helper classes | ||||
(C++11) | ||||
(C++11) | ||||
common_type<std::pair> (C++23) | ||||
(C++23) | ||||
(C++11) | ||||
| Deduction guides(C++17) |
Defined in header <utility> | ||
template<class T1,class T2,class U1,class U2> requires requires{typenamestd::pair<std::common_type_t<T1, U1>, | (since C++23) | |
The common type of twopairs is apair of both common types of corresponding element types of bothpairs.
The common type is defined only if both pairs of corresponding element types have common types.
| Member type | Definition |
type | std::pair<std::common_type_t<T1, U1>,std::common_type_t<T2, U2>> |
| This section is incomplete Reason: no example |
(C++11) | determines the common type of a group of types (class template)[edit] |
(C++23) | determines the common type of atuple and atuple-like type(class template specialization)[edit] |