Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Erase a std::unordered_map::local_iterator by key
#include <unordered_map> int main() { std::unordered_map<int, int> m; auto p = m.begin(0); m.erase(p->first); }
run
|
edit
|
history
|
help
0
ternary test
Reverse polish notation
Throttle Example using a circular queue (Push all but 2 less than maxSize; then pop all but 2 of current size)
GreedyProblem1
khcmknhc
Merge Sort
Graphs Iteration 2.1 Directed Graphs
34534
What's the problem with this?
You can't erase a std::unordered_map::local_iterator