std::tuple_element<std::span> (3) - Linux Manuals

std::tuple_element<std::span>: std::tuple_element<std::span>

NAME

std::tuple_element<std::span> - std::tuple_element<std::span>

Synopsis


Defined in header <span>
template< std::size_t I, class T, std::size_t N > (since C++20)
struct tuple_element<I, std::span<T, N> >;


Provides compile-time indexed access to the type of the elements of the span using tuple-like interface. The program is ill-formed if I >= N or if N == std::dynamic_extent.

Member types


Member type Definition
type the type of elements of the span, i.e., T

Example


 This section is incomplete
 Reason: no example

See also


                               obtains the type of the specified element
tuple_element (class template specialization)


std::tuple_element<std::pair> obtains the type of the elements of pair
                               (class template specialization)
(C++11)
                               obtains the type of the elements of array
std::tuple_element<std::array> (class template specialization)