N
N
NothingSacred2020-05-30 17:15:51
C++ / C#
NothingSacred, 2020-05-30 17:15:51

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

1 answer(s)
M
maaGames, 2020-05-30
@NothingSacred

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 question

Ask a Question

731 491 924 answers to any question