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

Method get

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

Source from the content-addressed store, hash-verified

65 unique_ptr_with_addressof_operator() = default;
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};

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected