Jimmy Johnson wrote:
>
>
> The C++ Reference says for the container class vector, its destructor,
> "Destructs the container object. This calls each of the contained
> element's destructors, and deallocates all the storage capacity
> allocated by the vector."
>
> If I have a container of references to objects (is this the syntax?)
>
> vector <*person> my_container
>
I'm assuming you mean vector<person *>. If so, then no, the destructor
won't be called on your 'person' object which the pointer points to.