util/AllocatedArray: add method data()

This commit is contained in:
Max Kellermann 2020-11-17 21:12:22 +01:00 committed by Max Kellermann
parent 5b0ef7ea98
commit b1bef9c21d

View File

@ -148,6 +148,14 @@ public:
return buffer.size;
}
pointer data() noexcept {
return buffer.data;
}
const_pointer data() const noexcept {
return buffer.data;
}
reference front() noexcept {
return buffer.front();
}