MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / ~CustomSmartPtr

Method ~CustomSmartPtr

test/embind/embind_test.cpp:1702–1709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1700 }
1701
1702 ~CustomSmartPtr() {
1703 verify();
1704 std::fill(d_, d_ + N_, Deleted);
1705
1706 if (ptr_ && --ptr_->refcount == 0) {
1707 delete ptr_;
1708 }
1709 }
1710
1711 T* get_raw() const {
1712 return ptr_;

Callers

nothing calls this directly

Calls 2

verifyFunction · 0.50
fillFunction · 0.50

Tested by

no test coverage detected