cpp/utility/integer sequence

The class template represents a compile-time sequence of integers. When used as an argument to a function template, the parameter pack can be deduced and used in pack expansion.

Member functions
{{member | {{small|std::integer_sequence::}}size | 2= {{ddcl | 1= static constexpr std::size_t size noexcept; }}

Returns the number of elements in {{tt|Ints}}. Equivalent to {{c|sizeof...(Ints)}}

Parameters
(none)

Return value
The number of elements in.

}}

Helper templates
A helper alias template is defined for the common case where  is std:

Helper alias templates and  are defined to simplify creation of  and  types, respectively, with 0, 1, 2, ...,  as :

The program is ill-formed if is negative. If is zero, the indicated type is.

A helper alias template is defined to convert any type parameter pack into an index sequence of the same length: