D
Dave
A quick question:
vector <T *> test_vec;
T testT;
test_vec.push_back(&testT);
T * testT2p = new T;
test_vec.push_back(testT2p);
Now at the end do I need to explicitly delete the vector (test_vec).
How should I make sure that the memory allocation is ok?
Thanks,
vector <T *> test_vec;
T testT;
test_vec.push_back(&testT);
T * testT2p = new T;
test_vec.push_back(testT2p);
Now at the end do I need to explicitly delete the vector (test_vec).
How should I make sure that the memory allocation is ok?
Thanks,