Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
AutoPtr Construction and Assignment<br />
> When constructing an AutoPtr from a C*, the AutoPtr takes<br />
ownership of C (and its reference count remains unchanged).<br />
> When assigning a C* to an AutoPtr, the AutoPtr takes<br />
ownership of C (and its reference count remains unchanged).<br />
> When constructing an AutoPtr from another AutoPtr,<br />
both AutoPtr's share ownership of C, and its reference count is<br />
incremented.<br />
> When assigning an AutoPtr to another AutoPtr, both<br />
AutoPtr's share ownership of C, and its reference count is<br />
incremented.