diff --git a/src/util/StringBuffer.hxx b/src/util/StringBuffer.hxx index e7957757f..fdb250287 100644 --- a/src/util/StringBuffer.hxx +++ b/src/util/StringBuffer.hxx @@ -51,6 +51,7 @@ protected: Array the_data; public: + using iterator = typename Array::iterator; using const_iterator = typename Array::const_iterator; static constexpr size_type capacity() noexcept { @@ -91,6 +92,14 @@ public: return the_data[i]; } + constexpr iterator begin() noexcept { + return the_data.begin(); + } + + constexpr iterator end() noexcept { + return the_data.end(); + } + constexpr const_iterator begin() const noexcept { return the_data.begin(); }