Original Post
Let's hypothetically say I have an std::map of pointers: std::map _settings; How would I free all of the pointers in the map? I've tried iterating through the map and deleting each map but the std::map iterators do not work the same as std::list iterator. I'm predicting people suggest smart pointers...