title: Does vector::erase() on a vector of object pointers destroy the object itself?
body: <p>I have a vector of pointers to objects. I need to remove an element from the vector and place that element in another list. </p>
  
  <p>I read that erase can be used to remove the object from the vector, but I also read that it calls the objects destructor before doing so. </p>
  
  <p>I need to know whether or not erasing the object will destroy it as well.</p>