Checking value exist in a std::map – C++

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.

Leave a Comment