Commit 1d1259a8 authored by Max Kellermann's avatar Max Kellermann

util/AllocatedString: add method data()

parent 101f08ca
...@@ -123,6 +123,10 @@ public: ...@@ -123,6 +123,10 @@ public:
return *value == SENTINEL; return *value == SENTINEL;
} }
constexpr pointer_type data() const {
return value;
}
reference_type operator[](size_type i) { reference_type operator[](size_type i) {
return value[i]; return value[i];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment