M
michael
Hi All,
if I have a class that uses a STL list of pointers like:
class SomeClass {
private:
list<OtherClass*> aList;
--other stuff--
}
If I just do aList.clear() in the destructor is that sufficient or do I have
to do a delete on each pointer in the list?
Thanks for your help
Michael
if I have a class that uses a STL list of pointers like:
class SomeClass {
private:
list<OtherClass*> aList;
--other stuff--
}
If I just do aList.clear() in the destructor is that sufficient or do I have
to do a delete on each pointer in the list?
Thanks for your help
Michael