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

Method make

tests/test_class.cpp:266–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264
265 struct MyDerived : MyBase {
266 static std::unique_ptr<MyDerived> make() {
267 return std::unique_ptr<MyDerived>(new MyDerived());
268 }
269 };
270
271 py::class_<MyBase>(m, "MyBase").def_static("make", &MyBase::make);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected