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-time indexed access to the type of the elements of the array using tuple-like interface.
Member type | Definition |
---|---|
type | the type of elements of the array |
template<std::size_t I, class T> struct tuple_element; template<std::size_t I, class T, std::size_t N> struct tuple_element<I, std::array<T,N> > { using type = T; }; |
obtains the type of the specified element (class template specialization) |
|
(C++11) | obtains the type of the elements of pair (class template specialization) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/container/array/tuple_element