A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.com/reference/array/array/tuple_size/ below:

class template specialization

<array>

std::tuple_size<array>
template <class Tpl> class tuple_size;     // unspecializedtemplate <class T, size_t N>  struct tuple_size< array<T,N> >;         // array specialization

Tuple size traits for array

Accesses the size of an array object as if it was a tuple.
1
2
3
template <class Tpl> class tuple_size;
template <class T, size_t N>
  struct tuple_size< array<T,N> > : integral_constant <size_t,N> {};

See tuple_size for more information.

Template parameters
Tpl
Type for which the size is to be obtained: array<T,N>.
T
Type of the elements contained.
N
Size of the array, in terms of number of elements.
Aliased as member value.
size_t is an unsigned integral type.

Member contants member constant definition value N (the size of the array).
This is a constexpr value of the unsigned integral type size_t.
See also
tuple_size
Tuple size traits (class template)
tuple_element<array>
Tuple element type for array (class template specialization)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4