author | alpar |
Mon, 01 Nov 2004 07:04:52 +0000 | |
changeset 952 | fa65d57f1930 |
parent 618 | e944d741f472 |
permissions | -rw-r--r-- |
1 #include <iostream>
3 #include <lemon/maps.h>
5 using namespace std;
6 using namespace lemon;
8 int main()
9 {
10 ConstMap<int, char> a('#');
12 cout << "sizeof ConstMap<int,char> = " << sizeof a << endl;
13 cout << "a[5] = " << a[5] << endl;
15 StdMap<int, char> b('$');
16 cout << "sizeof ConstMap<int,char> = " << sizeof b << endl;
17 cout << "sizeof std::map<int,char> = "
18 << sizeof(std::map<int,char>) << endl;
19 cout << "b[5] = " << b[5] << endl;
21 b[5]='l';
22 cout << "b[5] = " << b[5] << endl;
23 }