Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/container/array/tuple element"

From cppreference.com
< cpp‎ | container‎ | array
m (Text replace - "{{tdcl list begin" to "{{dcl list begin")
m (Text replace - "{{tdcl list end" to "{{dcl list end")
Line 15: Line 15:
 
{{tdcl list hitem | Member type | Definition}}
 
{{tdcl list hitem | Member type | Definition}}
 
{{tdcl list item | type | the type of elements of the array}}
 
{{tdcl list item | type | the type of elements of the array}}
{{tdcl list end}}
+
{{dcl list end}}
  
 
===Possible implementation===
 
===Possible implementation===

Revision as of 01:27, 12 June 2012

Template:cpp/container/array/sidebar Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <array>
</td>

<td></td> <td></td> </tr> <tr class="t-dcl ">

<td >
template< std::size_t I, class T, std::size_t N >
struct tuple_element<I, array<T, N> >;
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end

Provides compile-type indexed access to the type of the elements of the array using tuple-like interface

Contents

Member types

Template:tdcl list hitemTemplate:tdcl list item

Possible implementation

Template:eq fun cpp

Example

See also

obtains the type of the specified element
(class template specialization) [edit]
obtains the type of the elements of pair
(class template specialization) [edit]