Searched refs:is_borrowed (Results 1 – 2 of 2) sorted by relevance
236 object(handle h, bool is_borrowed) : handle(h) { if (is_borrowed) inc_ref(); } in object() argument796 …Name(handle h, bool is_borrowed) : Parent(is_borrowed ? Parent(h, borrowed_t{}) : Parent(h, stolen… in PYBIND11_NAMESPACE_END()1199 …capsule(PyObject *ptr, bool is_borrowed) : object(is_borrowed ? object(ptr, borrowed_t{}) : object… in PYBIND11_OBJECT_DEFAULT()
851 array_t(handle h, bool is_borrowed) : array(raw_array_t(h.ptr()), stolen_t{}) {853 if (!is_borrowed) Py_XDECREF(h.ptr());