Obsolete Members for QScopedArrayPointer

I seguenti membri della classe ` QScopedArrayPointer ` sono deprecati. Sono forniti per garantire la compatibilità con il codice sorgente esistente. Si sconsiglia vivamente di utilizzarli nel codice nuovo.

Funzioni pubbliche

(deprecated in 6.2) void swap(QScopedArrayPointer<T, Cleanup> &other)

Documentazione sulle funzioni membro

[noexcept, deprecated in 6.2] void QScopedArrayPointer::swap(QScopedArrayPointer<T, Cleanup> &other)

Questa funzione è deprecata a partire dalla versione 6.2. Si sconsiglia vivamente di utilizzarla nel codice nuovo.

Utilizzare invece ` std::unique_ptr `; questa funzione potrebbe consentire a un puntatore di uscire dal proprio ambito.

Scambia questo puntatore con other. Questa operazione è molto veloce e non fallisce mai.

.

© 2026 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.