std::tuple_size<std::experimental::ranges::tagged>

From cppreference.com
 
 
Technical specifications
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)
 
 
General utilities library
Utility components
Function objects
Metaprogramming and type traits
Tagged pairs and tuples
                          
tag specifiers
                                      
                          
 
 
template< class Base, class... Tags >

struct tuple_size<std::experimental::ranges::tagged<Base, Tags...>>

    : std::tuple_size<Base> {};
(ranges TS)

The partial specialization of std::tuple_size for tagged provides the ability to obtain the number of elements in a tagged object using tuple-like syntax. It simply forwards to std::tuple_size<Base>.

Inherited from std::integral_constant

Member constants

value
[static]
std::tuple_size<Base>::value
(public static member constant)

Member functions

operator std::size_t
converts the object to std::size_t, returns value
(public member function)
operator()
(C++14)
returns value
(public member function)

Member types

Type Definition
value_type std::size_t
type std::integral_constant<std::size_t, value>

See also

obtains the size of tuple at compile time
(class template specialization)
obtains the size of an array
(class template specialization)
obtains the size of a pair
(class template specialization)
obtains the types of the elements of a tagged
(class template specialization)