util/AllocatedString: add method empty()
This commit is contained in:
parent
f06fe76d35
commit
619ef2b341
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user