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

Method get

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

Source from the content-addressed store, hash-verified

51 shared_ptr_with_addressof_operator() = default;
52 explicit shared_ptr_with_addressof_operator(T *p) : impl(p) {}
53 T *get() const { return impl.get(); }
54 T **operator&() { throw std::logic_error("Call of overloaded operator& is not expected"); }
55};
56

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected