How can i remove a vector element from a unordered_map
std::unordered_map<std::string stdstrID, std::vector<std::string>> controlTags;
i will have multiple vales for a give keyname and would want to remove given value for the keyname from the vector list.
void Sum_TagControl::Remove_Tag(std::string stdstrControlID , std::string stdstrName) {
for (auto tagData : controlTags[stdstrControlID]) {
if (tagData == stdstrName) {
// remove this text element from the vector list.
}
}
}
Aucun commentaire:
Enregistrer un commentaire