Smart Pointers: Difference between revisions
Jump to navigation
Jump to search
(fix broken links to documentation) |
(add QScopedArrayPointer) |
||
Line 21: | Line 21: | ||
* QGuard (internal class) | * QGuard (internal class) | ||
* [http://doc.qt.io/qt-5/qscopedpointer.html QScopedPointer] | * [http://doc.qt.io/qt-5/qscopedpointer.html QScopedPointer] | ||
* [http://doc.qt.io/qt-5/qscopedarraypointer.html QScopedArrayPointer] | |||
= See also = | = See also = |
Revision as of 08:42, 15 April 2015
This article may require cleanup to meet the Qt Wiki's quality standards. Reason: Auto-imported from ExpressionEngine. Please improve this article if you can. Remove the {{cleanup}} tag and add this page to Updated pages list after it's clean. |
Smart Pointers
Purpose
Smart pointer is an abstract data type that has all features of a standard pointer and additionally provides automatic garbage collection. Smart pointers facilitate the dynamic memory operations. Their main advantage is reducing memory leaks and bugs due to poor memory management.
Smart Pointers in Qt
- QPointer
- QSharedDataPointer
- QExplicitlySharedDataPointer
- QtPatternist::AutoPtr (internal class)
- QSharedPointer
- QWeakPointer
- QGuard (internal class)
- QScopedPointer
- QScopedArrayPointer
See also
Count with me: how many smart pointer classes does Qt have?