Boost logo

Boost Users :

From: MM (finjulhich_at_[hidden])
Date: 2020-03-12 20:53:31

I want a collection to store a relationship N to M like so:

Item of type A Item of type B
A1 B1,B2,B3
A2 B4
A3 B1

and I would like a convenient way to get from a A instance to the list of B
instances, and vice versa, from a given B instance to the list of A

At runtime, the A objects are created first, then a list of B objects is
Later, B objects get modified asynchronously and that modification need to
update the relevant A instances

what container to use?

boost::bimap< unordered_set<A*> , unordered_set<B*> >


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at