Searched defs:HasOpNewDel (Results 1 – 1 of 1) sorted by relevance
246 struct HasOpNewDel { in TEST_SUBMODULE() struct247 std::uint64_t i; in TEST_SUBMODULE()248 static void *operator new(size_t s) { py::print("A new", s); return ::operator new(s); } in TEST_SUBMODULE()249 … static void *operator new(size_t s, void *ptr) { py::print("A placement-new", s); return ptr; } in TEST_SUBMODULE()250 static void operator delete(void *p) { py::print("A delete"); return ::operator delete(p); } in TEST_SUBMODULE()