08.11.2014 Views

Memory Management - Poco

Memory Management - Poco

Memory Management - Poco

SHOW MORE
SHOW LESS

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.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!