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

Function operator new

tests/Issue333.cpp:5–8  ·  view source on GitHub ↗

replacement of a minimal set of functions:

Source from the content-addressed store, hash-verified

3
4// replacement of a minimal set of functions:
5void* operator new(std::size_t sz) {
6 std::printf("global op new called, size = %zu\n",sz);
7 return std::malloc(sz);
8}
9void operator delete(void* ptr) noexcept
10{
11 std::puts("global op delete called");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected