From 1d1259a86d90756abef512d2d379140b873353b1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 13 Sep 2017 10:34:12 +0200 Subject: [PATCH] util/AllocatedString: add method data() --- src/util/AllocatedString.hxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/AllocatedString.hxx b/src/util/AllocatedString.hxx index 43ba8f449..477639802 100644 --- a/src/util/AllocatedString.hxx +++ b/src/util/AllocatedString.hxx @@ -123,6 +123,10 @@ public: return *value == SENTINEL; } + constexpr pointer_type data() const { + return value; + } + reference_type operator[](size_type i) { return value[i]; }