Finding value in unordered_map

前端 未结 4 1483
忘了有多久
忘了有多久 2021-01-11 14:49

I am using Boost unordered_map. I have a key value pair for each entry. How could I determine whether a particular value exist in the map? (I don\'t want to create another u

4条回答
  •  失恋的感觉
    2021-01-11 15:55

    Boost has the Bimap, which is a bidirectional map (ie, keys and values both refer to each other). This sounds more appropriate for your needs than the unordered_map.

提交回复
热议问题