What is the correct way to remove the "GPU" element from the following STL map container ?
"GPU"
map
#include<map> #include<string> using std::map, std::string; map<string, int> dico = { {"CPU", 10}, {"GPU", 15}, {"RAM", 20} };
dico.remove("GPU")
dico.remove({"CPU", 10})
dico.erase("GPU")
dico.clear("GPU")