DASH  0.3.0
dash::ce::make_index_sequence< N, Is > Struct Template Reference

Generates a compile-sequence integer (size_t) sequence in ascending order. More...

#include <IndexSequence.h>

Detailed Description

template<std::size_t N, std::size_t... Is>
struct dash::ce::make_index_sequence< N, Is >

Generates a compile-sequence integer (size_t) sequence in ascending order.

Example:

template<std::size_t... Is> void print(dash::ce::index_sequence<Is...>&& s) { for (auto i : { Is... }) std::cout << i << " "; std::cout << "\n"; }

print(dash::ce::make_rev_index_sequence<5>()); //output: 0 1 2 3 4

Definition at line 41 of file IndexSequence.h.


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