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

Function ptr

include/pybind11/pytypes.h:267–267  ·  view source on GitHub ↗

Return the underlying ``PyObject *`` pointer

Source from the content-addressed store, hash-verified

265
266 /// Return the underlying ``PyObject *`` pointer
267 PyObject *ptr() const { return m_ptr; }
268 PyObject *&ptr() { return m_ptr; }
269
270 /** \rst

Callers 3

reloadFunction · 0.85
add_objectFunction · 0.85
clearMethod · 0.85

Calls 1

ptrMethod · 0.80

Tested by

no test coverage detected