Obsolete Members for QScopedArrayPointer

Los siguientes miembros de la clase ` QScopedArrayPointer ` están obsoletos. Se proporcionan para que el código fuente antiguo siga funcionando. Recomendamos encarecidamente no utilizarlos en código nuevo.

Funciones públicas

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

Documentación de funciones de miembro

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

Esta función está obsoleta desde la versión 6.2. Recomendamos encarecidamente no utilizarla en código nuevo.

Utiliza en su lugar ` std::unique_ptr `; esta función puede hacer que un puntero se salga de su ámbito.

Intercambia este puntero con other. Esta operación es muy rápida y nunca falla.

.

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