MCPcopy Create free account
hub / github.com/pybind/pybind11 / operator delete

Method operator delete

tests/test_class.cpp:377–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375 return ptr;
376 }
377 static void operator delete(void *p) {
378 py::print("D delete");
379 return ::operator delete(p);
380 }
381 static void operator delete(void *p, size_t s) {
382 py::print("D wrong delete", s);
383 return ::operator delete(p);

Callers

nothing calls this directly

Calls 1

printFunction · 0.85

Tested by

no test coverage detected