I am currently using map<int, int> in C++. I can check for the existence of a key without a problem but is there an efficient way to retrieve the keys that a particular value has as well? My purpose is to grab all the elements with a given value and then update their value.
I am currently using map<int, int> in C++. I can check for the existence
Share
You might be interested in Boost.Bimap.