this programm Exited with error status 134.
Acroodding to the message complier sent, it seems that i have made a mistake of double free.but i have just called the destructed function once only.
i wonder why and how to use"c.~container()" correctly.
appreciate it if you can do me a favour.
There is a caveat I'd like to add,
Vector is one of the Standard Template Library classes that help you with garbage collection and help you avoid memory leaks, so you can get away with it.. this time. BUT if you're using custom pointers outside of the STL classes, you would want to delete those pointers and set them to nullptr.