aboutsummaryrefslogtreecommitdiff
path: root/src/list/cons.h
blob: b858c4c3fcc30ed136c8c0dc4315c44408132dcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef TYPEASVALUE_SRC_LIST_CONS_H_
#define TYPEASVALUE_SRC_LIST_CONS_H_

namespace tav {

template <
	typename CAR,
	typename CDR
>
struct Cons {
	typedef CAR car;
	typedef CDR cdr;
};

template <typename Cons>
using Car = typename Cons::car;

template <typename Cons>
using Cdr = typename Cons::cdr;

}

#endif  // TYPEASVALUE_SRC_LIST_CONS_H_