I have ;
class object { // any private datas token in heap area public : ~object () ; };
You can use vector::erase..
And your object destructor should delete all the members you have allocated in heap.
object
delete