From b1bef9c21df3876712161c2a41cfda138e92fd8f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 17 Nov 2020 21:12:22 +0100 Subject: [PATCH] util/AllocatedArray: add method data() --- src/util/AllocatedArray.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/util/AllocatedArray.hxx b/src/util/AllocatedArray.hxx index a01c3dd55..e0491be89 100644 --- a/src/util/AllocatedArray.hxx +++ b/src/util/AllocatedArray.hxx @@ -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(); }