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

Function pass_cptr_drvd

tests/test_class_sh_inheritance.cpp:33–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32inline int pass_cptr_base(base const *b) { return b->id() + 11; }
33inline int pass_cptr_drvd(drvd const *d) { return d->id() + 12; }
34
35inline std::shared_ptr<drvd> rtrn_shmp_drvd() { return std::make_shared<drvd>(); }
36inline std::shared_ptr<base> rtrn_shmp_drvd_up_cast() { return std::make_shared<drvd>(); }

Callers

nothing calls this directly

Calls 1

idMethod · 0.45

Tested by

no test coverage detected