Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/1a1a11a/libCacheSim
/ swap
Method
swap
libCacheSim/dataStructure/sparsepp/spp_smartptr.h:45–45 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
43
spp_sptr& operator=(const spp_sptr &o) { reset(o._p); return *this; }
44
T* get() const { return _p; }
45
void swap(spp_sptr &o) { T *tmp = _p; _p = o._p; o._p = tmp; }
46
void reset(const T *p = 0)
47
{
48
if (p == _p)
Callers
2
spp_sptr
Class · 0.95
swap
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected