What’s the advantage of multimap over map of vectors?
I would say it depends on whether all the values with same key have a relationship that you want to address. So for example, do you often go through all elements with key X, or pass them to a function, and so on? Then it is more convenient to already have them in their separate … Read more