MCPcopy Create free account
hub / github.com/pybind/pybind11 / NoPlacementNew

Method NoPlacementNew

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

Source from the content-addressed store, hash-verified

343 class NoPlacementNew {
344 public:
345 explicit NoPlacementNew(int i) : i(i) {}
346 static void *operator new(std::size_t s) {
347 auto *p = ::operator new(s);
348 py::print("operator new called, returning", reinterpret_cast<uintptr_t>(p));

Callers 1

test_no_placement_newFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected