Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HelenOS/helenos
/ swap
Method
swap
uspace/lib/cpp/include/__bits/memory/shared_ptr.hpp:295–299 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
293
*/
294
295
void swap(shared_ptr& other) noexcept
296
{
297
std::swap(payload_, other.payload_);
298
std::swap(data_, other.data_);
299
}
300
301
void reset() noexcept
302
{
Callers
3
shared_ptr
Class · 0.45
reset
Method · 0.45
swap
Function · 0.45
Calls
1
swap
Function · 0.70
Tested by
no test coverage detected