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

Method staticFunction

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

Source from the content-addressed store, hash-verified

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")
56 .def(py::init<>())

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected