Erasing an element in shared_ptr

12 Nov
2002
12 Nov
'02
5:59 p.m.
I know that the destructor of shared_ptr will call delete for its contents, but what about erasing a member using the standard erase() function in vector?

12 Nov
12 Nov
7:03 p.m.
New subject: [Boost-Users] Erasing an element in shared_ptr
On Tuesday, November 12, 2002, at 09:59 AM, cadiolis wrote:
I know that the destructor of shared_ptr will call delete for its contents, but what about erasing a member using the standard erase() function in vector?
Erasing a member from a vector calls its destructor. This is not really an issue specific to shared_ptr. No worries. -- Darin
8267
Age (days ago)
8267
Last active (days ago)
0 comments
1 participants
participants (1)
-
cadiolis
-
Darin Adler