Commit 619ef2b3 authored by Max Kellermann's avatar Max Kellermann

util/AllocatedString: add method empty()

parent f06fe76d
...@@ -89,6 +89,10 @@ public: ...@@ -89,6 +89,10 @@ public:
return value; return value;
} }
bool empty() const {
return *value == 0;
}
pointer Steal() { pointer Steal() {
pointer result = value; pointer result = value;
value = nullptr; value = nullptr;
......
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