Obsolete Members for QScopedArrayPointer

以下成员源于类 QScopedArrayPointer 被弃用。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共函数

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

成员函数文档编制

[noexcept, deprecated in 6.1] 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 .