void GlobalEvents::clearMap(GlobalEventMap& map) { for (const auto& it : map) { delete it.second; } map.clear(); }
void GlobalEvents::clearMap(GlobalEventMap& map) { GlobalEventMap::iterator it; for(it = map.begin(); it != map.end(); ++it) delete it->second; map.clear(); }
void GlobalEvents::clearMap(GlobalEventMap& map) { map.clear(); }