Obsolete Members for QScopedArrayPointer

Os seguintes membros da classe ` QScopedArrayPointer ` estão obsoletos. Eles são fornecidos para manter o código-fonte antigo em funcionamento. Recomendamos enfaticamente que não sejam utilizados em código novo.

Funções públicas

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

Documentação das funções de membro

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

Essa função está obsoleta desde a versão 6.2. Recomendamos enfaticamente que você não a utilize em código novo.

Use ` std::unique_ptr ` em vez disso; essa função pode permitir que um ponteiro saia de seu escopo.

Troca este ponteiro pelo ` other`. Essa operação é muito rápida e nunca falha.

.

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