Original Post
Hi, I am wondering something about STL vector class containing pointers. For example if we create something like : Will the destructors for A* types be called automatically upon exit inside the destructor of vector ? Or should we delete them manually?
class A
{
int a;
.
.
};
std::vector< A* > array;
array.push_back(new A);
array.push_back(new A);
.
.
.