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 )

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

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

Swaps this pointer with other 。此操作非常快且从不失败。

.