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

Method spp_sptr

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

Source from the content-addressed store, hash-verified

33{
34public:
35 spp_sptr() : _p(0) {}
36 spp_sptr(T *p) : _p(p) { if (_p) _p->increment(); }
37 spp_sptr(const spp_sptr &o) : _p(o._p) { if (_p) _p->increment(); }
38#ifndef SPP_NO_CXX11_RVALUE_REFERENCES

Callers

nothing calls this directly

Calls 1

incrementMethod · 0.80

Tested by

no test coverage detected