I have a vector set up as follows:
vector< vector<myClass>* > vec;
I am having trouble deleting elements from vec however, I have dynamically allocated all elements in vec, and am trying to delete the ith element as follows:
vector<myClass> *victim = vec[i];
delete victim;
victim = 0;
However this does not seem to be correctly removing them from vec. What am I missing here?