blob: 3bf65a28c02a1506a0a1e4bb97a5a9a7be75c9fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#ifndef TYPEASVALUE_SRC_LIST_GENERATOR_MAKE_LIST_H_
#define TYPEASVALUE_SRC_LIST_GENERATOR_MAKE_LIST_H_
#include "list/cons.h"
#include "operation/math.h"
namespace tav {
template <
typename Count,
typename Element
>
struct MakeList {
typedef Cons<
Element,
typename MakeList<
Substract<Count, Size<1>>,
Element
>::type
> type;
};
template <typename Element>
struct MakeList<Size<1>, Element> {
typedef Cons<Element, void> type;
};
}
#endif // TYPEASVALUE_SRC_LIST_GENERATOR_MAKE_LIST_H_
|