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

Method release_ptr

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

Source from the content-addressed store, hash-verified

66 explicit unique_ptr_with_addressof_operator(T *p) : impl(p) {}
67 T *get() const { return impl.get(); }
68 T *release_ptr() { return impl.release(); }
69 T **operator&() { throw std::logic_error("Call of overloaded operator& is not expected"); }
70};
71

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.80

Tested by

no test coverage detected