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

Function pass_valu

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

Source from the content-addressed store, hash-verified

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; }
77std::string pass_mref(atyp& obj) { return "pass_mref:" + obj.mtxt; }
78std::string pass_cptr(atyp const* obj) { return "pass_cptr:" + obj->mtxt; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected