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

Method ptr_owner

tests/test_class_sh_unique_ptr_member.cpp:26–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24class ptr_owner {
25public:
26 explicit ptr_owner(std::unique_ptr<pointee> ptr) : ptr_(std::move(ptr)) {}
27
28 bool is_owner() const { return bool(ptr_); }
29

Callers 1

Calls 1

moveFunction · 0.85

Tested by

no test coverage detected