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

Method returnNullChild

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

Source from the content-addressed store, hash-verified

50 void addChild(Child *) {}
51 Child *returnChild() { return new Child(); }
52 Child *returnNullChild() { return nullptr; }
53 static Child *staticFunction(Parent *) { return new Child(); }
54 };
55 py::class_<Parent>(m, "Parent")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected