Thursday, March 24, 2005

smart pointer

Smart pointers are objects that look and feel like pointers, but are smarter. auto_ptr is a simple wrapper around a regular pointer. It forwards all meaningful operations to this pointer (dereferencing and indirection). Its smartness in the destructor: the destructor takes care of deleting the pointer.

0 Comments:

Post a Comment

<< Home