You can use boost::multi_index to create a bidirectional map – you can use either value of the pair as a key to do a quick lookup.
You can use boost::multi_index to create a bidirectional map – you can use either value of the pair as a key to do a quick lookup.