Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ custom_unique_ptr
Method
custom_unique_ptr
tests/test_smart_ptr.cpp:38–38 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
36
37
public:
38
explicit custom_unique_ptr(T *p) : impl(p) {}
39
T *get() const { return impl.get(); }
40
T *release_ptr() { return impl.release(); }
41
};
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected