Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/1a1a11a/libCacheSim
/ increment
Method
increment
libCacheSim/dataStructure/sparsepp/spp_smartptr.h:19–19 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
17
spp_rc() : _cnt(0) {}
18
spp_rc(const spp_rc &) : _cnt(0) {}
19
void increment() const { ++_cnt; }
20
void decrement() const { assert(_cnt); if (--_cnt == 0) delete this; }
21
unsigned count() const { return _cnt; }
22
Callers
2
spp_sptr
Method · 0.80
reset
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected