Is C++ bimap possible with one side of view having different key than other side of the view value? How to do that?
问题 At the beginning I needed a map, so I used std::map. Then, some requirements were added and I needed to also get "keys" for "value" (foos for bar), so I used boost::bimaps::bimap< boost::bimaps::unordered_set_of<boost::bimaps::tagged<std::string, foo>>, boost::bimaps::multiset_of<boost::bimaps::tagged<std::string, bar>>> And after that, some more requirements were added, so now I need to store a number for every foo and from the right side view I need to be able to call <bimap>.righ.find(bar)