32 lines
764 B
C++
32 lines
764 B
C++
|
#ifndef id4FAEF395B9ED47CB9D6B50B54C9A289A
|
||
|
#define id4FAEF395B9ED47CB9D6B50B54C9A289A
|
||
|
|
||
|
#include <cstddef>
|
||
|
|
||
|
namespace dk {
|
||
|
namespace bt {
|
||
|
template <std::size_t... I>
|
||
|
struct index_seq {
|
||
|
};
|
||
|
|
||
|
namespace implem {
|
||
|
template <std::size_t MIN, std::size_t MAX, std::size_t... I>
|
||
|
struct range_builder;
|
||
|
|
||
|
template <std::size_t MIN, std::size_t... I>
|
||
|
struct range_builder<MIN, MIN, I...> {
|
||
|
typedef index_seq<I...> type;
|
||
|
};
|
||
|
|
||
|
template <std::size_t MIN, std::size_t N, std::size_t... I>
|
||
|
struct range_builder : public range_builder<MIN, N - 1, N - 1, I...> {
|
||
|
};
|
||
|
} //namespace implem
|
||
|
|
||
|
template <std::size_t MIN, std::size_t MAX>
|
||
|
using index_range = typename implem::range_builder<MIN, MAX>::type;
|
||
|
} //namespace bt
|
||
|
} //namespace dk
|
||
|
|
||
|
#endif
|