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

Function rtrn_cptr

tests/test_class_sh_factory_constructors.cpp:38–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36atyp_cref const& rtrn_cref() { static atyp_cref obj; obj.mtxt = "Cref"; return obj; }
37atyp_mref& rtrn_mref() { static atyp_mref obj; obj.mtxt = "Mref"; return obj; }
38atyp_cptr const* rtrn_cptr() { return new atyp_cptr{"Cptr"}; }
39atyp_mptr* rtrn_mptr() { return new atyp_mptr{"Mptr"}; }
40
41std::shared_ptr<atyp_shmp> rtrn_shmp() { return std::make_shared<atyp_shmp>(atyp_shmp{"Shmp"}); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected