tags:

views:

78

answers:

1

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.

+8  A: 

You might be interested in Boost.Bimap.

Fred Larson
@Fred: Thanks. Will look into it now and get back.
Legend
this is definitely very useful +1
Chubsdad