aboutsummaryrefslogtreecommitdiff
path: root/src/list/operation/append.h
blob: 28c9adffebca0a6a987a547db891716980aa541f (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
#ifndef TYPEASVALUE_SRC_LIST_OPERATION_APPEND_H_
#define TYPEASVALUE_SRC_LIST_OPERATION_APPEND_H_

namespace tav {

template <
	typename Primary,
	typename Secondary
>
struct Append {
	typedef Eval<Cons<
		Head<Primary>,
		Eval<Append<
			Tail<Primary>,
			Secondary
		>>
	>> type;
};

template <typename Secondary>
struct Append<void, Secondary> {
	typedef Secondary type;
};

}

#endif  // TYPEASVALUE_SRC_LIST_OPERATION_APPEND_H_