Namespaces
Variants
Views
Actions

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

From cppreference.com
 
 
Experimental
Technical Specification
Filesystem library (filesystem TS)
Library fundamentals (library fundamentals TS)
Library fundamentals 2 (library fundamentals TS v2)
Library fundamentals 3 (library fundamentals TS v3)
Extensions for parallelism (parallelism TS)
Extensions for parallelism 2 (parallelism TS v2)
Extensions for concurrency (concurrency TS)
Extensions for concurrency 2 (concurrency TS v2)
Concepts (concepts TS)
Ranges (ranges TS)
Reflection (reflection TS)
Mathematical special functions (special functions TR)
Experimental Non-TS
Pattern Matching
Linear Algebra
std::execution
Contracts
2D Graphics
 
 
General utilities library
Utility components
Function objects
Metaprogramming and type traits
Tagged pairs and tuples
                          
tag specifiers
                                      
                          
 
 
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>.

[edit] Member types

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

[edit] See also

obtains the type of the specified element
(class template specialization) [edit]
obtains the type of the elements of array
(class template specialization) [edit]
obtains the type of the elements of pair
(class template specialization) [edit]
obtains the size of a tagged
(class template specialization) [edit]
English 中文 中文(繁體)