Re: How does STL map deal with scoping and memory persistance



You should delete the objects on your own. In general, always 'delete' what
you 'new'.

--
Regards,
Nish [VC++ MVP]
http://www.voidnish.com
http://blog.voidnish.com


"Tommo" <mark.thomson@xxxxxxxxxxxxx> wrote in message
news:1121754302.072833.166840@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Being that I am holding pointers ( that have been new'd elsewhere )
> when i want to remove elements from this map, should i be deleting the
> value under a key or will the container take are of it for me??
>


.



Relevant Pages