MCPcopy Create free account
hub / github.com/pybind/pybind11 / getRefCount

Method getRefCount

tests/object.h:18–18  ·  view source on GitHub ↗

Return the current reference count

Source from the content-addressed store, hash-verified

16
17 /// Return the current reference count
18 int getRefCount() const { return m_refCount; };
19
20 /// Increase the object's reference count by one
21 void incRef() const { ++m_refCount; }

Callers 2

TEST_SUBMODULEFunction · 0.80
test_smart_ptrFunction · 0.80

Calls

no outgoing calls

Tested by 2

TEST_SUBMODULEFunction · 0.64
test_smart_ptrFunction · 0.64