Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.
Smart Pointers/ru: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
AutoSpider (talk | contribs) m (AutoSpider moved page Smart Pointers Russian to Smart Pointers/ru: Localisation) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Cleanup | reason=Auto-imported from ExpressionEngine.}} | |||
[[Category:Developing_with_Qt::General]] | [[Category:Developing_with_Qt::General]] | ||
Line 11: | Line 13: | ||
== Умные указатели в Qt == | == Умные указатели в Qt == | ||
* | * [http://doc.qt.nokia.com/latest/qpointer.html QPointer] | ||
* | * [http://doc.qt.nokia.com/latest/qshareddatapointer.html QSharedDataPointer] | ||
* | * [http://doc.qt.nokia.com/latest/qexplicitlyshareddatapointer.html QExplicitlySharedDataPointer] | ||
* QtPatternist::AutoPtr (internal class) | * QtPatternist::AutoPtr (internal class) | ||
* | * [http://doc.qt.nokia.com/latest/qsharedpointer.html QSharedPointer] | ||
* | * [http://doc.qt.nokia.com/latest/qweakpointer.html QWeakPointer] | ||
* QGuard (internal class) | * QGuard (internal class) | ||
* | * [http://doc.qt.nokia.com/latest/qscopedpointer.html QScopedPointer] | ||
= Смотрите также = | = Смотрите также = | ||
[http://labs.qt.nokia.com/2009/08/25/count-with-me-how-many-smart-pointer-classes-does-qt-have/ Count with me: how many smart pointer classes does Qt have?] | |||
= Ссылки = | = Ссылки = | ||
[http://en.wikipedia.org/wiki/Smart_pointers Smart Pointer] | |||
[http://ru.wikipedia.org/wiki/Умный_указатель Умные указатели] |
Latest revision as of 03:37, 12 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. |
Умные указатели
Цель
Умный указатель это шаблонный класс, который имеет все функции стандартного указателя и дополнительно обеспечивает автоматический сбор мусора. Умные указатели облегчают операции с динамической памятью. Их основным преимуществом является сокращение утечек памяти и ошибок из-за плохого управления памятью.
Умные указатели в Qt
- QPointer
- QSharedDataPointer
- QExplicitlySharedDataPointer
- QtPatternist::AutoPtr (internal class)
- QSharedPointer
- QWeakPointer
- QGuard (internal class)
- QScopedPointer
Смотрите также
Count with me: how many smart pointer classes does Qt have?