The removal of the two-dimensional std::vector?

Here you need the destructor to delete a vector of type vector<vector<bool>> vec_bool</vector<bool>Information in Google is full and varies as it is done correctly?
June 3rd 19 at 19:00
1 answer
June 3rd 19 at 19:02
And he himself will be deleted. If your class has a pointer to a vector, and it is allocated dynamically via new, then just delete it is necessary, that's all.
For each element of the vector deleting destructor is called.

Find more questions by tags C++