Friday, December 3, 2010

auto_ptr

One of the goals of auto_ptr is to prevent multiple deletes.

The auto_ptr passes ownership of an underlying pointer around so that only the auto_ptr object that owns the pointer will delete the object.

No comments:

Post a Comment