Guest User

Untitled

a guest
Dec 23rd, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. for (std::undordered_map< int, Foo* >::iterator it = someList.begin(); it != someList.end(); ++it)
  2. {
  3.     delete it->second;
  4.     it->second = nullptr;
  5. }
  6.  
  7. someList.clear();
Advertisement
Add Comment
Please, Sign In to add comment