Map with maintained insertion order

Andrej Mitrovic andrej.mitrovich at gmail.com
Fri Mar 23 15:48:51 PDT 2012


Does someone have a map implementation that maintains the insertion
order of the keys?

E.g.:

string[string] map;
map["foo"] = "x";
map["bar"] = "y";

When iterating over map keys I want to visit "foo" first, then "bar", and so on.


More information about the Digitalmars-d-learn mailing list