MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / count

Method count

libCacheSim/dataStructure/sparsepp/spp_smartptr.h:21–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 void increment() const { ++_cnt; }
20 void decrement() const { assert(_cnt); if (--_cnt == 0) delete this; }
21 unsigned count() const { return _cnt; }
22
23protected:
24 virtual ~spp_rc() {}

Callers 2

can_clearMethod · 0.45
get_diffMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected