C++ Destructors with Vectors, Pointers,
std::vector and std::strings: Are they destroyed automatically? Yes (assuming member variables are not pointers to std::vector and std::string). If I have something like std::vector what happens when the vector destructor is called? Would it call automatically the destructor of myClass? Or only the vector is destroyed but all the Objects it contains are still existant … Read more