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

Function pass_mptr

tests/test_class_sh_basic.cpp:79–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77std::string pass_mref(atyp& obj) { return "pass_mref:" + obj.mtxt; }
78std::string pass_cptr(atyp const* obj) { return "pass_cptr:" + obj->mtxt; }
79std::string pass_mptr(atyp* obj) { return "pass_mptr:" + obj->mtxt; }
80
81std::shared_ptr<atyp> rtrn_shmp() { return std::make_shared<atyp>("rtrn_shmp"); }
82std::shared_ptr<atyp const> rtrn_shcp() { return std::shared_ptr<atyp const>(new atyp{"rtrn_shcp"}); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected