The Qt equivalent to std::unique_ptr
is QScopedPointer
.
It’s significantly less useful as it doesn’t support move semantics, making it closer in utility to C++03 std::auto_ptr
(Why is auto_ptr being deprecated?).
The Qt equivalent to std::unique_ptr
is QScopedPointer
.
It’s significantly less useful as it doesn’t support move semantics, making it closer in utility to C++03 std::auto_ptr
(Why is auto_ptr being deprecated?).