#include #include #include using namespace std; int main() { map m = {{"z", 2},{"y", 1},{"x", 3}}; map :: iterator i; m["a"]=4; cout <first<< ","<< i->second<<"} ";// {a,4} {x,3} {y,1} {z,2} return 0; }