I want to have something similar to map but while iterating I want them to be in the same order as it is added.
Example
map.insert("one", 1);
map.insert("two", 2);
map.insert("three", 3);
While iterating I want the items to be like "one", ""two", "three"..By default, map doesn't provide this added order. How to get the map elements the way I have added? I want to retain the insertion order.
Anything with STL is fine or other alternative suggestions also fine.