util/AllocatedString: add method empty()

This commit is contained in:
Max Kellermann 2015-06-25 23:43:58 +02:00
parent f06fe76d35
commit 619ef2b341

View File

@ -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;