std::common_typestd::pair - cppreference.com (original) (raw)
The common type of two pairs is a pair of both common types of corresponding element types of both pairs.
The common type is defined only if both pairs of corresponding element types have common types.