util/AllocatedString: add method data()

This commit is contained in:
Max Kellermann 2017-09-13 10:34:12 +02:00
parent 101f08ca75
commit 1d1259a86d

View File

@ -123,6 +123,10 @@ public:
return *value == SENTINEL;
}
constexpr pointer_type data() const {
return value;
}
reference_type operator[](size_type i) {
return value[i];
}