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

Method SftVirtBase

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

Source from the content-addressed store, hash-verified

251// (virtual inheritance with shared_ptr holder)
252struct SftVirtBase : std::enable_shared_from_this<SftVirtBase> {
253 SftVirtBase() = default;
254 virtual ~SftVirtBase() = default;
255 static std::shared_ptr<SftVirtBase> create() { return std::make_shared<SftVirtBase>(); }
256 virtual std::string name() { return "SftVirtBase"; }

Calls

no outgoing calls

Tested by

no test coverage detected