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

Method create

tests/test_smart_ptr.cpp:265–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263struct SftVirtDerived2 : virtual SftVirtDerived {
264 using SftVirtDerived::SftVirtDerived;
265 static std::shared_ptr<SftVirtDerived2> create() {
266 return std::make_shared<SftVirtDerived2>();
267 }
268 std::string name() override { return "SftVirtDerived2"; }
269 std::string call_name(const std::shared_ptr<SftVirtDerived2> &d2) { return d2->name(); }
270};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected