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

Method operator delete

tests/test_factory_constructors.cpp:351–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349 return p;
350 }
351 static void operator delete(void *p) {
352 py::print("operator delete called on", reinterpret_cast<uintptr_t>(p));
353 ::operator delete(p);
354 }
355 int i;
356 };
357 // As of 2.2, `py::init<args>` no longer requires placement new

Callers

nothing calls this directly

Calls 1

printFunction · 0.85

Tested by

no test coverage detected