Commit cf06ba6d authored by Max Kellermann's avatar Max Kellermann

fs/AllocatedPath: add method Steal()

parent a8d80057
......@@ -170,6 +170,14 @@ public:
}
/**
* 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.
*/
......
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