src/work/klao/map_test.cc
changeset 286 d3c4d99860a9
parent 283 91e78d9b78f4
child 618 e944d741f472
     1.1 --- a/src/work/klao/map_test.cc	Sat Apr 03 18:42:39 2004 +0000
     1.2 +++ b/src/work/klao/map_test.cc	Sat Apr 03 20:33:05 2004 +0000
     1.3 @@ -1,14 +1,23 @@
     1.4  #include <iostream>
     1.5  
     1.6 -#include <skeletons/maps.h>
     1.7 +#include <maps.h>
     1.8  
     1.9  using namespace std;
    1.10 -using namespace hugo::skeleton;
    1.11 +using namespace hugo;
    1.12  
    1.13  int main()
    1.14  {
    1.15 -  ReadableMap<int, char> a;
    1.16 +  ConstMap<int, char> a('#');
    1.17  
    1.18 -  cout << sizeof a << endl;
    1.19 +  cout << "sizeof ConstMap<int,char> = " << sizeof a << endl;
    1.20 +  cout << "a[5] = " << a[5] << endl;
    1.21  
    1.22 +  StdMap<int, char> b('$');
    1.23 +  cout << "sizeof ConstMap<int,char> = " << sizeof b << endl;
    1.24 +  cout << "sizeof std::map<int,char> = "
    1.25 +       << sizeof(std::map<int,char>) << endl;
    1.26 +  cout << "b[5] = " << b[5] << endl;
    1.27 +
    1.28 +  b[5]='l';
    1.29 +  cout << "b[5] = " << b[5] << endl;
    1.30  }