std::map<std::string, std::string> fruit; fruit["apple"] = "red"; fruit["bannana"] = "yellow";Then we try to get:
std::string c = fruit["orange"];String c will be "". Since its been added to the map. Note this as changed fruit.size() You can use fruit.find("orange") to see if a key is present.