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 Operators and Semantics<br />

> <strong>Poco</strong>::AutoPtr support relational operators:<br />

==, !=, =<br />

> De-referencing operators: *, -><br />

will throw a NullPointerException if pointer is null<br />

> <strong>Poco</strong>::AutoPtr supports full value semantics (default constructor,<br />

copy constructor, assignment) and can be used in collections<br />

(e.g., std::vector or std::map).<br />

> Use AutoPtr::isNull() or AutoPtr::operator ! () to test for null

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

Saved successfully!

Ooh no, something went wrong!