MCPcopy Create free account
hub / github.com/covscript/covscript / operator new

Method operator new

include/covscript/impl/symbols.hpp:631–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

629 static garbage_collector<statement_base> gc;
630
631 static void *operator new(std::size_t size)
632 {
633 void *ptr = ::operator new(size);
634 gc.add(ptr);
635 return ptr;
636 }
637
638 static void operator delete(void *ptr)
639 {

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected