Is there a STL utility/algorithm to do delete *the_object_iterator; on all the objects? So that I can clear() safely? The STL container is a set and the objects are pointers to C++ classes created with new.
Boost seems to be the best solution. My goal was to avoid copy-construction on noncopyable classes.