[try Beta version]
Not logged in

 
Deallocating a vector of vectors

Oct 11, 2016 at 4:22am
If I have a vector of vectors with a custom data type (A struct in my case, std::vector< std::vector<MyCustomDataType> >) how would I deallocate this?

Thank you,
Popa
Oct 11, 2016 at 4:58am
std::vector manages memory itself. If you store pointers in there, though, you will have to delete them yourself before the vector(s) go out of scope.
Topic archived. No new replies allowed.