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

Function rtrn_mptr

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

Source from the content-addressed store, hash-verified

71atyp& rtrn_mref() { static atyp obj; obj.mtxt = "rtrn_mref"; return obj; }
72atyp const* rtrn_cptr() { return new atyp{"rtrn_cptr"}; }
73atyp* rtrn_mptr() { return new atyp{"rtrn_mptr"}; }
74
75std::string pass_valu(atyp obj) { return "pass_valu:" + obj.mtxt; } // NOLINT
76std::string pass_cref(atyp const& obj) { return "pass_cref:" + obj.mtxt; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected