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

Function pass_cptr_base

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

Source from the content-addressed store, hash-verified

30inline base *rtrn_mptr_drvd_up_cast() { return new drvd; }
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>(); }

Callers

nothing calls this directly

Calls 1

idMethod · 0.45

Tested by

no test coverage detected