Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HelenOS/helenos
/ swap
Function
swap
uspace/lib/cpp/include/__bits/memory/shared_ptr.hpp:553–556 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
551
552
template<class T>
553
void swap(shared_ptr<T>& lhs, shared_ptr<T>& rhs) noexcept
554
{
555
lhs.swap(rhs);
556
}
557
558
/**
559
* 20.8.2.2.9, shared_ptr casts:
Callers
1
swap
Method · 0.70
Calls
1
swap
Method · 0.45
Tested by
no test coverage detected