1 | Here's result of execution
|
---|
2 |
|
---|
3 | alex@rhyme ~/tmp/c++ $ ./testmap create
|
---|
4 | alex@rhyme ~/tmp/c++ $ ./testmap add 4AD847FF.108C4.38B3
|
---|
5 | alex@rhyme ~/tmp/c++ $ ./testmap add 4AD84681.1BFF1.3899
|
---|
6 | alex@rhyme ~/tmp/c++ $ ./testmap add 4AD833F4.2B91A.361E
|
---|
7 | alex@rhyme ~/tmp/c++ $ ./testmap add 4AD84845.3ADBB.3895
|
---|
8 | alex@rhyme ~/tmp/c++ $ ./testmap add 4AD8484C.E7C49.3896
|
---|
9 | alex@rhyme ~/tmp/c++ $ ./testmap add 4AD847A8.40AA2.3897
|
---|
10 | alex@rhyme ~/tmp/c++ $ ./testmap add 4AD83274.CFB8C.35F6
|
---|
11 | alex@rhyme ~/tmp/c++ $ ./testmap list
|
---|
12 | RouteMap content (7 element(s)):
|
---|
13 | "4AD83274.CFB8C.35F6"
|
---|
14 | "4AD833F4.2B91A.361E"
|
---|
15 | "4AD847A8.40AA2.3897"
|
---|
16 | "4AD84845.3ADBB.3895"
|
---|
17 | "4AD8484C.E7C49.3896"
|
---|
18 | "4AD84681.1BFF1.3899"
|
---|
19 | "4AD847FF.108C4.38B3"
|
---|
20 | end of RouteMap content
|
---|
21 | alex@rhyme ~/tmp/c++ $ ./testmap find 4AD847A8.40AA2.3897
|
---|
22 | element 4AD847A8.40AA2.3897 is NOT found
|
---|
23 | alex@rhyme ~/tmp/c++ $ ./testmap find 4AD8484C.E7C49.3896
|
---|
24 | element 4AD8484C.E7C49.3896 is NOT found
|
---|
25 | alex@rhyme ~/tmp/c++ $ ./testmap find 4AD833F4.2B91A.361E
|
---|
26 | element 4AD833F4.2B91A.361E is NOT found
|
---|
27 | alex@rhyme ~/tmp/c++ $ ./testmap find 4AD83274.CFB8C.35F6
|
---|
28 | element 4AD83274.CFB8C.35F6 is NOT found
|
---|
29 | alex@rhyme ~/tmp/c++ $ ./testmap find 4AD84681.1BFF1.3899
|
---|
30 | element 4AD84681.1BFF1.3899 is in the map
|
---|
31 | alex@rhyme ~/tmp/c++ $ ./testmap find 4AD847FF.108C4.38B3
|
---|
32 | element 4AD847FF.108C4.38B3 is in the map
|
---|
33 |
|
---|
34 | As one may see iteration over the map returns the complete list of items (7 elements), while find() skips certain keys. If I add a debug print to RouteKey::operator<, I see that just few comparsion are performed
|
---|