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

Method pass_valu

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

Source from the content-addressed store, hash-verified

20 bool valid() const { return static_cast<bool>(held); }
21
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; }

Callers

nothing calls this directly

Calls 1

moveFunction · 0.85

Tested by

no test coverage detected