util/AllocatedString: add method empty()
This commit is contained in:
parent
f06fe76d35
commit
619ef2b341
@ -89,6 +89,10 @@ public:
|
||||
return value;
|
||||
}
|
||||
|
||||
bool empty() const {
|
||||
return *value == 0;
|
||||
}
|
||||
|
||||
pointer Steal() {
|
||||
pointer result = value;
|
||||
value = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user