Obsolete Members for QScopedArrayPointer
クラスQScopedArrayPointer の以下のメンバーは非推奨です。これらは古いソース・コードの動作を維持するために提供されています。新しいコードでは使用しないことを強くお勧めします。
パブリック関数
(deprecated in 6.2) void | swap(QScopedArrayPointer<T, Cleanup> &other) |
メンバ関数ドキュメント
[noexcept, deprecated in 6.2]
void QScopedArrayPointer::swap(QScopedArrayPointer<T, Cleanup> &other)
この関数は6.2から非推奨となった。新しいコードでは使用しないことを強くお勧めします。
代わりにstd::unique_ptr
を使ってください。この関数はポインタをスコープから逃がしてしまう可能性があります。
このポインタをother と入れ替えます。この操作は非常に高速で、失敗することはありません。
.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.