What is the appropriate loop to deal with the instances?
example:

Qt Code:
  1. foreach (Something* thing, a_map)
  2. {
  3. delete thing;
  4. }
To copy to clipboard, switch view to plain text mode