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

Function pass_cptr_base1

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

Source from the content-addressed store, hash-verified

53inline base2 *rtrn_mptr_drvd2_up_cast2() { return new drvd2; }
54
55inline int pass_cptr_base1(base1 const *b) { return b->id() + 21; }
56inline int pass_cptr_base2(base2 const *b) { return b->id() + 22; }
57inline int pass_cptr_drvd2(drvd2 const *d) { return d->id() + 23; }
58// clang-format on

Callers

nothing calls this directly

Calls 1

idMethod · 0.45

Tested by

no test coverage detected