distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
estd::IntegerSequence< T, Integers > Class Template Reference

Compile-time sequence of integers. More...

#include "estd/IntegerSequence.hpp"

Public Types

using value_type = T
 integer type used for the elements of the sequence More...
 

Static Public Member Functions

static constexpr std::size_t size () noexcept
 

Detailed Description

template<typename T, T... Integers>
class estd::IntegerSequence< T, Integers >

Compile-time sequence of integers.

Similar to std::integer_sequence from C++14 - http://en.cppreference.com/w/cpp/utility/integer_sequence

Template Parameters
Tis an integer type to use for the elements of the sequence
Integersis a non-type parameter pack representing the sequence

Member Typedef Documentation

◆ value_type

template<typename T, T... Integers>
using estd::IntegerSequence< T, Integers >::value_type = T

integer type used for the elements of the sequence

Member Function Documentation

◆ size()

template<typename T, T... Integers>
static constexpr std::size_t estd::IntegerSequence< T, Integers >::size ( )
inlinestaticnoexcept
Returns
number of elements in the sequence

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