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

Method push_back_steal

include/pybind11/detail/argument_vector.h:393–393  ·  view source on GitHub ↗

Add a pointer, taking ownership (no incref, will decref on destruction)

Source from the content-addressed store, hash-verified

391
392 /// Add a pointer, taking ownership (no incref, will decref on destruction)
393 void push_back_steal(PyObject *p) { m_ptrs.push_back(p); }
394
395 /// Add a pointer, borrowing (increfs now, will decref on destruction)
396 void push_back_borrow(PyObject *p) {

Callers 1

processFunction · 0.80

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected