std::tuple_element<std::pair>
From cppreference.com
Defined in header <utility>
|
||
template< class T1, class T2 > struct tuple_element<0, std::pair<T1,T2> >; |
(1) | (since C++11) |
template< class T1, class T2 > struct tuple_element<1, std::pair<T1,T2> >; |
(2) | (since C++11) |
The partial specializations of std::tuple_element for pairs provide a compile-time way to obtain the types of the pair's elements, using tuple-like syntax.
Contents |
[edit] Member types
First version | |
Member type | Definition |
type
|
T1
|
Second version | |
Member type | Definition |
type
|
T2
|
[edit] Example
This section is incomplete Reason: no example |
[edit] See also
obtains the type of the specified element (class template specialization) | |
obtains the type of the elements of array (class template specialization) | |
(C++11) |
obtains the size of a pair (class template specialization) |