std::vector Erase
std::vector::erase method does not call the destructor on a data pointer.
You must delete the pointer yourself after you have erased the data from the vector array.
std::vector::erase method does not call the destructor on a data pointer.
You must delete the pointer yourself after you have erased the data from the vector array.