Say I have a set:
std::unordered_set<int> mints;
Then I do:
mints.erase(foo);
But mints doesn't contain foo! Is it guaranteed that nothing bad will happen, and that erase will simply just return 0 ?
Aucun commentaire:
Enregistrer un commentaire