Suppose I have a std::vector objs (for performance reasons I have pointers not actual Objs).
std::vector objs
Obj
I populate it with obj.push
obj.push
Yes. Fill it with smart pointers and use vector.clear() is the easiest way.