-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
46 lines (41 loc) · 1.15 KB
/
main.cpp
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include "splay_tree.h"
int main(int nArgs, char **args)
{
typedef node<constant<4>,
node<constant<2>,
node<constant<1>,
nil,
nil
>,
node<constant<3>,
nil,
nil
>
>,
node<constant<7>,
node<constant<6>,
node<constant<5>,
nil,
nil
>,
nil
>,
node<constant<10>,
node<constant<8>,
nil,
nil
>,
node<constant<11>,
nil,
nil
>
>
>
> tree;
print_tree<tree>();
std::cout << std::endl;
typedef remove<tree, constant<7> >::result t1;
print_tree<t1>();
std::cout << std::endl;
return 0;
}