|
-
February 2nd, 2003, 12:39 PM
#1
STL Vector - delete memory ?
Does the STL vector class delete the allocated memory for its elements when it calls its clear() method or does it just remove them from the vector's list, but leave the memory untouched?
I have vectors storing pointers to allocated memory and would like to ensure the memory is deleted too as it clears the vector (don't want those memory leaks do we).
Thanks in Advance.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|