You are viewing a single comment's thread. Return to all comments →
lets say you called the iterator it and the map mp.
if(it != mp.end()) mp.erase(it);
I had the issue too till I found that it must exist in mp or the behavior is undefined.
Seems like cookies are disabled on this browser, please enable them to open this website
Maps-STL
You are viewing a single comment's thread. Return to all comments →
lets say you called the iterator it and the map mp.
I had the issue too till I found that it must exist in mp or the behavior is undefined.