Obsolete Members for QScopedArrayPointer

以下成員源於類 QScopedArrayPointer 被棄用。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

公共函數

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

成員函數文檔編製

void QScopedArrayPointer:: swap ( QScopedArrayPointer < T , Cleanup > & other )

This function is deprecated since 6.1. We strongly advise against using it in new code.

使用 std::unique_ptr instead; this function may let a pointer escape its scope.

Swap this pointer with other .