- Code: Select all
Poco::HashMap<std::string, MediaConnector*>::Iterator it = myMap.find(key);
myMap.erase(it);
std::cout << it->first << " " << it->second << std::endl;
I find that
- Code: Select all
it->first
- Code: Select all
it->second
But sometimes
- Code: Select all
it->first
- Code: Select all
it->second
That is to say, it's not reliable to use the iterator after using it as a parameter in the HashMap::erase(Iterator it) function, right?





