Core/Utils: Added nullptr_t assignment operator to unique_weak_ptr (alias for .reset())

This commit is contained in:
Shauren
2025-04-26 11:32:28 +02:00
parent f9bf082be9
commit 9d86423d8c

View File

@@ -198,6 +198,12 @@ public:
~unique_weak_ptr() = default;
unique_weak_ptr& operator=(std::nullptr_t) noexcept
{
_ptr.reset();
return *this;
}
void swap(unique_weak_ptr& other) noexcept
{
using std::swap;