C++: How to clean up a vector/map properly
- by Martijn Courteaux
Hi,
If I have a vector<string*> *vect or a map<pair<string*, int*>, string*> *map,
how to clean up everything (including all object the vector/map contains)?
(Everything (vector, map, contents, pairs, string, ints) is allocated with new)
Is
delete vect;
delete map;
enough?