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

Method rtrn_valu

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

Source from the content-addressed store, hash-verified

22 void pass_valu(std::unique_ptr<atyp> obj) { held = std::move(obj); }
23 void pass_rref(std::unique_ptr<atyp> &&obj) { held = std::move(obj); }
24 std::unique_ptr<atyp> rtrn_valu() { return std::move(held); }
25 std::unique_ptr<atyp> &rtrn_lref() { return held; }
26 const std::unique_ptr<atyp> &rtrn_cref() const { return held; }
27};

Callers

nothing calls this directly

Calls 1

moveFunction · 0.85

Tested by

no test coverage detected