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.

SharedPtr and Casts<br />

> Like ordinary pointers, <strong>Poco</strong>::SharedPtr supports a cast operation.<br />

> template <br />

SharedPtr cast() const<br />

> A SharedPtr cast is always typesafe<br />

(internally, dynamic_cast is used, so an invalid cast will result in a<br />

null pointer).<br />

> Assignment of compatible SharedPtr's is supported through a<br />

template constructor and assignment operator.

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

Saved successfully!

Ooh no, something went wrong!