I have ;
class object { // any private datas token in heap area public : ~object () ; };
To delete the object on the end of that pointer, call delete myVector[i]
To then remove that pointer from in the vector, call myVector.erase(myVector.begin()+i)