aboutsummaryrefslogtreecommitdiff
path: root/src/list/generator/iota.h
blob: 1def67e00becec8fbffd97b967c70dc0524798c4 (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
#ifndef TYPEASVALUE_SRC_LIST_GENERATOR_IOTA_H_
#define TYPEASVALUE_SRC_LIST_GENERATOR_IOTA_H_

#include "pair.h"
#include "operation/math.h"
#include "function/apply.h"
#include "detail/generate_nested_structure.h"

namespace tav {

template <
	typename Count,
	typename Initial,
	typename Step
>
using Iota = Eval<detail::generate_nested_structure<
	Pair,
	Apply<Add, Step, _0>::template function,
	Initial,
	Count
>>;

}

#endif  // TYPEASVALUE_SRC_LIST_GENERATOR_IOTA_H_