Его назначение предназначено для назначения:
void test() { std::map<std::string, int >myMap; myMap["hello"] = 5; }