# std::tuple_element<std::experimental::ranges::tagged>

From cppreference.com
< cpp‎ | experimental‎ | ranges‎ | utility/tagged

template< std::size_t N, class Base, class... Tags > struct tuple_element<N, std::experimental::ranges::tagged<Base, Tags...>> : std::tuple_element<N, Base> { }; |  | (ranges TS)

The partial specialization of std::tuple_element for `tagged` provide compile-time access to the types of the `tagged`'s elements, using tuple-like syntax. It simply forwards to std::tuple_element<N, Base>.

### Member types

Member type | Definition
`type` | std::tuple_element_t<N, Base>

### See also

tuple_element | obtains the type of the specified element (class template specialization)
std::tuple_element<std::array> | obtains the type of the elements of `array` (class template specialization)
std::tuple_element<std::pair> (C++11) | obtains the type of the elements of `pair` (class template specialization)
std::tuple_size<std::experimental::ranges::tagged> | obtains the size of a `tagged` (class template specialization)

Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/experimental/ranges/utility/tagged/tuple_element&oldid=102195"