aboutsummaryrefslogtreecommitdiff
path: root/src/list/operation/append.h
blob: 6cf15f04f28f052b87ec5b0c09bd41b8c68fa1eb (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 typename Cons<
		Head<Primary>,
		typename Append<
			Tail<Primary>,
			Secondary
		>::type
	>::type type;
};

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

}

#endif  // TYPEASVALUE_SRC_LIST_OPERATION_APPEND_H_