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

Function pass_unique_ptr_cref

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

Source from the content-addressed store, hash-verified

120std::unique_ptr<atyp> unique_ptr_roundtrip(std::unique_ptr<atyp> obj) { return obj; }
121
122std::string pass_unique_ptr_cref(const std::unique_ptr<atyp> &obj) { return obj->mtxt; }
123
124const std::unique_ptr<atyp> &rtrn_unique_ptr_cref(const std::string &mtxt) {
125 static std::unique_ptr<atyp> obj{new atyp{"static_ctor_arg"}};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected