std::common_type<std::tuple>
From cppreference.com
| Defined in header <tuple>
|
||
| template< class... Ts, class... Us > requires requires { typename std::tuple<std::common_type_t<Ts, Us>...>; } |
(since C++23) | |
The common type of two tuples is a tuple consists of the common types of all corresponding element type pairs of both tuples.
The common reference type is defined only if both tuples have the same number of elements, and their all corresponding element type pairs have common types.
Member types
| Member type | Definition |
type
|
std::tuple<std::common_type_t<Ts, Us>...> |
Example
| This section is incomplete Reason: no example |
See also
| (C++11) |
determines the common type of a group of types (class template) |
| (C++23) |
determines the common type of two pairs (class template specialization) |