Commit c44a7b27 authored by Max Kellermann's avatar Max Kellermann Committed by Max Kellermann

util/AllocatedArray: add operator=(nullptr)

parent 0ded2359
......@@ -110,6 +110,12 @@ public:
return *this;
}
AllocatedArray &operator=(std::nullptr_t n) noexcept {
delete[] buffer.data;
buffer = n;
return *this;
}
operator ConstBuffer<T>() const noexcept {
return buffer;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment