Actually it does not found the node by “aaa” nor “ccc”, it founds the node by the memory address a
points to. Comparison between pointers does just that, it does not perform a string comparison. If you want to index by a string, then use an std::string
.
2
solved interesting problem with map