void ResourceManager::DeleteMap(ResMap &theMap){ for (ResMap::iterator anItr = theMap.begin(); anItr != theMap.end(); ++anItr) delete anItr->second; theMap.clear();}
To help out: ResMap is a typedef for map, although this is readily apparent from the code.
{
theMap.erase(theMap.begin(), theMap.end());
}