std::tuple_element<std::array>
Template:cpp/utility/tuple/sidebar Template:ddcl list begin <tr class="t-dsc-header">
<td><tuple>
<td></td> <td></td> </tr> <tr class="t-dcl ">
<td >class tuple_element; /* undefined */
<td > (1) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td >class tuple_element< I, tuple<Types...> >;
<td > (2) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td >class tuple_element< I, const T > {
typedef typename
std::add_const<typename std::tuple_element<I, T>::type>::type type;
<td > (3) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td >class tuple_element< I, volatile T > {
typedef typename
std::add_volatile<typename std::tuple_element<I, T>::type>::type type;
<td > (4) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td >class tuple_element< I, const volatile T > {
typedef typename
std::add_cv<typename std::tuple_element<I, T>::type>::type type;
<td > (5) </td> <td > (since C++11) </td> </tr> Template:ddcl list end
Provides compile-type indexed access to the types of the elements of the tuple.
Contents |
Member types
Template:tdcl list begin Template:tdcl list hitem Template:tdcl list item Template:tdcl list end
Possible implementation
Example
See also
obtains the type of the elements of pair (class template specialization) |