equal
deleted
inserted
replaced
1 #include <iostream> |
1 #include <iostream> |
2 |
2 |
3 #include <skeletons/maps.h> |
3 #include <maps.h> |
4 |
4 |
5 using namespace std; |
5 using namespace std; |
6 using namespace hugo::skeleton; |
6 using namespace hugo; |
7 |
7 |
8 int main() |
8 int main() |
9 { |
9 { |
10 ReadableMap<int, char> a; |
10 ConstMap<int, char> a('#'); |
11 |
11 |
12 cout << sizeof a << endl; |
12 cout << "sizeof ConstMap<int,char> = " << sizeof a << endl; |
|
13 cout << "a[5] = " << a[5] << endl; |
13 |
14 |
|
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; |
|
20 |
|
21 b[5]='l'; |
|
22 cout << "b[5] = " << b[5] << endl; |
14 } |
23 } |