diff options
author | Max Kellermann <mk@cm4all.com> | 2020-11-17 21:12:22 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-11-30 22:30:28 +0100 |
commit | b1bef9c21df3876712161c2a41cfda138e92fd8f (patch) | |
tree | b8a925471cb5c4f924d198421d24e86a18716d7c /src | |
parent | 5b0ef7ea9844b61a1f4d596f1ec59af9b9ab5386 (diff) |
util/AllocatedArray: add method data()
Diffstat (limited to 'src')
-rw-r--r-- | src/util/AllocatedArray.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
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(); } |