Iterator Invalidation Rules
You're iterating over a std::map and need to erase certain elements during iteration. Which approach is correct in C++11 and later?
Sign in to answer questions and track your progress
Sign InYou're iterating over a std::map and need to erase certain elements during iteration. Which approach is correct in C++11 and later?
Sign in to answer questions and track your progress
Sign In