Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HelenOS/helenos
/ release
Method
release
uspace/lib/cpp/include/__bits/memory/unique_ptr.hpp:223–229 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
221
*/
222
223
pointer release() noexcept
224
{
225
auto ret = ptr_;
226
ptr_ = nullptr;
227
228
return ret;
229
}
230
231
void reset(pointer ptr = pointer{}) noexcept
232
{
Callers
3
shared_ptr
Method · 0.45
unique_ptr
Class · 0.45
unique_ptr<T[], D>
Class · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected