Namespaces
Variants

std:: common_type < tuple-like >

From cppreference.net
Utilities library
헤더에 정의됨 <tuple>
template < tuple - like TTuple, tuple - like UTuple >

requires /* see below */

struct common_type < TTuple, UTuple > ;
(C++23부터)

tuple-like 타입의 공통 타입은 두 타입의 모든 대응되는 요소 타입 쌍들의 공통 타입들로 구성된 std::tuple 입니다.

주어진

다음 제약 조건을 충족해야 합니다:

멤버 타입

멤버 타입 정의
type std:: tuple < std:: common_type_t < TTypes, UTypes > ... >

예제

참고 항목

여러 타입들의 공통 타입을 결정함
(클래스 템플릿)
두 개의 pair 의 공통 타입을 결정함
(클래스 템플릿 특수화)