Hello. How do you collect garbage from a vector of a class pointer (let's say, MyClass*)? Since I'm just barely starting out with STL, a really simple and easy to follow solution would be most appreciated. I'm guessing you can just go through it with an iterator and keep calling delete on the dereferenced iterator, but that doesn't sound like a very good way to do it. Thanks!