I wanted to use a multimap version of a boost::bimap and I am following this,
Boost::Bimap equivalent of bidirectional multimap
This shows how to add and retrieve values in the structure. I am trying to look up based on a value on the right that maps to multiple values on the left, and if found, I would like to add to the list on the left. For example, assume, this is the bimap,
value_type(1, 1)
value_type(10, 50)
value_type(1, 2)
value_type(9, 15)
and when you do a bimap.left.equal_range(1);
you get
1=>1
1=>2
I would like to update it such that it also maps to 3, ie, add 3 to the list, so that next time when bimap.left.equal_range(1);
is done, this would be the result,
1=>1
1=>2
1=>3
How can I get the list on the right so that I can modify the list like mentioned above(instead of just a const iterator, to just view the values).
TIA