You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, what I mean is that you should be able to call myHashmap.erase(iter) with an iterator you obtained by calling find(), but instead I have to cast it to const_iter because the non-const function doesn't exist. It's a minor API annoyance but I thought I'd create an issue for it
It only takes a const_iterator, but it should be able to take both.
https://en.cppreference.com/w/cpp/container/unordered_map/erase
The text was updated successfully, but these errors were encountered: