MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / operator delete

Function operator delete

tests/Issue333.cpp:9–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7 return std::malloc(sz);
8}
9void operator delete(void* ptr) noexcept
10{
11 std::puts("global op delete called");
12 std::free(ptr);
13}
14int main() {
15 int* p1 = new int;
16 delete p1;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected