Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
24
class ptr_owner {
25
public:
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
test_pointee_and_ptr_owner
Function · 0.80
Calls
1
move
Function · 0.85
Tested by
no test coverage detected