Is there any “associative” (ie, “key value”) container / data structure in C ++ that has the ability to maintain order in the order of insertion?
I have seen several topics on this, however, it seems to be the most before C ++ 11.
Some suggest using "boost :: multi_index", but if at all possible, I would rather use standard containers / structures.
I see that C ++ 11 has a few seemingly “unordered” associative containers: link .
Are there any of them that are, in some way, “customizable”, so that they are sorted only by insertion order?
Thanks!
WITH
source share