std::tuple_element<std::array>

From cppreference.com
< cpp‎ | container‎ | array
Defined in header <array>
template< std::size_t I, class T, std::size_t N >
struct tuple_element<I, array<T, N> >;
(since C++11)

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

Contents

[edit] Member types

Member type Definition
type the type of elements of the array

[edit] Possible implementation

template<std::size_t I, typename T>
  struct tuple_element;
 
template<std::size_t I, typename T, std::size_t N>
  struct tuple_element<I, std::array<T,N> >
  {
     using type = T;
  };

[edit] Example

[edit] See also

obtains the type of the specified element
(class template specialization)
obtains the type of the elements of pair
(class template specialization)
This site archives manuals. You are looking at an archived manual.
If you're looking for this specific version of this manual, you're in the right place. Otherwise, please check the version.