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

Function unique_ptr_roundtrip

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

Source from the content-addressed store, hash-verified

118std::ptrdiff_t get_ptr(atyp const &obj) { return reinterpret_cast<std::ptrdiff_t>(&obj); }
119
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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected