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

Method returnChild

tests/test_call_policies.cpp:51–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 ~Parent() { py::print("Releasing parent."); }
50 void addChild(Child *) {}
51 Child *returnChild() { return new Child(); }
52 Child *returnNullChild() { return nullptr; }
53 static Child *staticFunction(Parent *) { return new Child(); }
54 };

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected