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

Function wrap

tests/test_smart_ptr.cpp:407–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405struct example_drvd : example_base {};
406
407void wrap(py::module_ &m) {
408 m.def("return_std_shared_ptr_example_drvd",
409 // NOLINTNEXTLINE(modernize-make-shared)
410 []() { return std::shared_ptr<example_drvd>(new example_drvd()); });
411 m.def("return_std_unique_ptr_example_drvd",
412 []() { return std::unique_ptr<example_drvd>(new example_drvd()); });
413}
414
415} // namespace holder_caster_traits_test
416

Callers 1

TEST_SUBMODULEFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected