std::map<std::string, int> m;
m["jan"] = 1;
m["feb"] = 2;
m["mar"] = 3;
m["may"] = 4;
std::map<std::string, int>::const_iterator i;
for (i = m.begin(); i != m.end(); ++i)
{ std::cout << "key:" << i->first << std::endl;
}
-- MattWalsh - 01 May 2009