fs/AllocatedPath: add method Steal()
This commit is contained in:
parent
a8d800572e
commit
cf06ba6d13
@ -169,6 +169,14 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows the caller to "steal" the internal value by
|
||||
* providing a rvalue reference to the std::string attribute.
|
||||
*/
|
||||
std::string &&Steal() {
|
||||
return std::move(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if this is a "nulled" instance. A "nulled" instance
|
||||
* must not be used.
|
||||
|
Loading…
Reference in New Issue
Block a user