Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
std::integer_sequence< Type, Ints > Class Template Reference

Implements a compile-time sequence of integers. More...

Public Types

using value_type = Type
 The sequence integer type.
 

Static Public Member Functions

static constexpr auto size () noexcept -> size_t
 Returns the number of elements in the sequence.
 

Detailed Description

template<typename Type, Type... Ints>
class std::integer_sequence< Type, Ints >

Implements a compile-time sequence of integers.

Template Parameters
Typean integer type to use for the sequence of elements
Intsa non-type parameter pack of elements defining the sequence

Represents a compile-time sequence of integers of type Type. When used as an argument to a function template, the parameter pack defining the sequence can be deduced and used in a pack expansion.

Member Typedef Documentation

◆ value_type

template<typename Type, Type... Ints>
using std::integer_sequence< Type, Ints >::value_type = Type

The sequence integer type.

Member Function Documentation

◆ size()

template<typename Type, Type... Ints>
static constexpr auto std::integer_sequence< Type, Ints >::size ( ) -> size_t
inlinestaticconstexprnoexcept

Returns the number of elements in the sequence.

Returns
sizeof...(Ints)

The documentation for this class was generated from the following file: