3-phase PV router
Loading...
Searching...
No Matches
index_sequence.hpp
Go to the documentation of this file.
1
11
12#pragma once
13
14#include <stdint.h>
15
17template< uint8_t... I >
19{
20};
21
23template< uint8_t N, uint8_t... I >
24struct make_index_sequence_impl : make_index_sequence_impl< N - 1, N - 1, I... >
25{
26};
27
28template< uint8_t... I >
29struct make_index_sequence_impl< 0, I... >
30{
31 using type = index_sequence< I... >;
32};
34
36template< uint8_t N >
37using make_index_sequence = typename make_index_sequence_impl< N >::type;
typename make_index_sequence_impl< N >::type make_index_sequence
index_sequence< 0, 1, ..., N - 1 >.
The indexes I..., as a type.