map dada;
dada[\"dummy\"] = \"papy\";
cout << dada[\"pootoo\"];
I\'m puzzled because I don\'t know if it\'s considered
please have a look at the out_of_range exception: http://www.cplusplus.com/reference/stdexcept/out_of_range/
this is what map::at and map::operator[] will throw if key does not exist. You can catch it the same way as the vector example in the link.
You can also use: http://www.cplusplus.com/reference/map/map/find/
And check against map::end