table of contents
- Tumbleweed 2026.11.13-1.1
- Leap-16.0
- Leap-15.6
| std::tuple_size(3) | C++ Standard Libary | std::tuple_size(3) |
NAME¶
std::tuple_size - std::tuple_size
Synopsis¶
template< class Base, class... Tags >
struct tuple_size<std::experimental::ranges::tagged<Base, Tags...>> (ranges TS)
: std::tuple_size<Base> {};
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 std::tuple_size<Base>::value [static] (public static member constant)
Member functions¶
operator std::size_t converts the object to std::size_t, returns
value
(public member function) operator() returns value (C++14)
(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 std::tuple_size<std::tuple>
(C++11) a tuple
(class template specialization) std::tuple_size<std::array>
obtains the size of an array (C++11) (class template
specialization) std::tuple_size<std::pair> obtains the size of a
pair (C++11) (class template specialization)
obtains the types of the elements of
std::tuple_element<std::experimental::ranges::tagged> a tagged
(class template specialization)
| 2026.11.10 | http://cppreference.com |