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

Method release_ptr

tests/test_smart_ptr.cpp:40–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 explicit custom_unique_ptr(T *p) : impl(p) {}
39 T *get() const { return impl.get(); }
40 T *release_ptr() { return impl.release(); }
41};
42
43// Simple custom holder that works like shared_ptr and has operator& overload

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.80

Tested by

no test coverage detected