util/AllocatedArray: add nullptr constructor
This commit is contained in:
parent
b1bef9c21d
commit
9420c74101
@ -70,6 +70,9 @@ public:
|
||||
std::copy_n(src.data, src.size, buffer.data);
|
||||
}
|
||||
|
||||
AllocatedArray(std::nullptr_t n) noexcept
|
||||
:buffer(n) {}
|
||||
|
||||
explicit AllocatedArray(const AllocatedArray &other) noexcept
|
||||
:AllocatedArray(other.buffer) {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user