Hello,
recently I was in need of bidirectional map, but already solved the problem by using two simple maps. I'm just wondering are there any better solution for accessing map elements by both key (as in map) and by value without iterating through all the container each time when looking for value for example? I know someone have written stl-like bidirectional map, but I'm curious how to do it without any external libraries or headers and as simple as possible.