Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Many Qt classes are derived from QObject, and while some of the built in smart pointer classes are related to QObject (or QSharedData), the <a href="http://qt-project.org/doc/qt-4.8/qsharedpointer.html#details" rel="noreferrer">QSharedPointer</a> and <a href="http://qt-project.org/doc/qt-4.8/qscopedpointer.html#details" rel="noreferrer">QScopedPointer</a> templates appear to allow pointers to anything.</p> <p>Beyond that, you'll find some <a href="http://www.boost.org/doc/libs/1_40_0/libs/smart_ptr/smart_ptr.htm" rel="noreferrer">smart pointer templates</a> in <a href="http://www.boost.org/" rel="noreferrer">Boost</a>:</p> <ul> <li><a href="http://www.boost.org/doc/libs/1_40_0/libs/smart_ptr/scoped_ptr.htm" rel="noreferrer">scoped_ptr</a> - Simple sole ownership of single objects. Noncopyable.</li> <li><a href="http://www.boost.org/doc/libs/1_40_0/libs/smart_ptr/scoped_array.htm" rel="noreferrer">scoped_array</a> - Simple sole ownership of arrays. Noncopyable.</li> <li><a href="http://www.boost.org/doc/libs/1_40_0/libs/smart_ptr/shared_ptr.htm" rel="noreferrer">shared_ptr</a> - Object ownership shared among multiple pointers.</li> <li><a href="http://www.boost.org/doc/libs/1_40_0/libs/smart_ptr/shared_array.htm" rel="noreferrer">shared_array</a> - Array ownership shared among multiple pointers.</li> <li><a href="http://www.boost.org/doc/libs/1_40_0/libs/smart_ptr/weak_ptr.htm" rel="noreferrer">weak_ptr</a> - Non-owning observers of an object owned by shared_ptr.</li> <li><a href="http://www.boost.org/doc/libs/1_40_0/libs/smart_ptr/intrusive_ptr.html" rel="noreferrer">intrusive_ptr</a> - Shared ownership of objects with an embedded reference count.</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload