summaryrefslogtreecommitdiff
path: root/src/tests/list.cpp
blob: 34ab656aae5d8ed1ff1f1ca16b0f3d86e2abe84e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "bu/list.h"

int main()
{
	Bu::List<int> l;

	l.append( 0 );

	for( int j = 3; j <= 21; j += 3 )
	{
		l.append( j );
		l.prepend( -j );
	}

	for( Bu::List<int>::iterator i = l.begin(); i != l.end(); i++ )
	{
		printf("%d ", *i );
	}

	printf("\n\n");
}