I have an std::unordered\_map that I will be removing elements from via iteration.

```
auto itr = myMap.begin();
while (itr != myMap.end()) {
    if (/* removal condition */) {
        itr = myMap.erase(itr);
    } else {
        ++itr;
    }
}

```

I would like to prevent the map for performing any expensive operations until I'm done removing all of the elements that I need to remove. Do I have a valid concern? Am I misunderstanding how the internal storage works?