typedef std::map<std::string, int, std::less<std::string> > StringToInt; StringToInt m;This will usually work:
m["one"] = 1;But this is more clear:
m.insert(StringToInt::value_type("one", 1));It has no chance of being confused with a fetch from the map.