ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/dclient/testsuite/adt/test_map_vector.cpp
Revision: 1.1
Committed: Sun Oct 17 08:15:14 2010 UTC (13 years, 8 months ago) by sf-pippijn
Branch: MAIN
CVS Tags: HEAD
Log Message:
initial import

File Contents

# Content
1 #include "adt/map_vector.h"
2
3 #include <iostream>
4
5 int
6 main ()
7 {
8 map_vector<int> v;
9
10 v.ensure (-10);
11 v.ensure (10);
12 v.at (-10) = 2;
13 v.at (10) = 2;
14
15 for (int i = v.low (); i < v.high (); i++)
16 std::cout << i << ": " << v.at (i) << "\n";
17 }