Answer the question
In order to leave comments, you need to log in
Is there an analogue of the multimap container in C++, but which would store the pairs in the order they were added?
Is there an analogue of the multimap container in C++, but which would store the pairs in the order they were added?
Answer the question
In order to leave comments, you need to log in
This is C ++, if something is not there, then you can do it. You can do anything, because this is C ++ and there are almost no restrictions.
std::map< KeyType, std::list > advancedMultimap;
You can make a class so that the access interface is more convenient.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question