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 tuple
s is a tuple
consists of the common types of all corresponding element type pairs of both tuple
s.
The common reference type is defined only if both tuple
s have the same number of elements, and their all corresponding element type pairs have common types.
[edit] Member types
Member type | Definition |
type
|
std::tuple<std::common_type_t<Ts, Us>...> |
[edit] Example
This section is incomplete Reason: no example |
[edit] See also
(C++11) |
determines the common type of a group of types (class template) |
(C++23) |
determines the common type of two pair s (class template specialization) |