Searched refs:is_borrowed (Results 1 - 2 of 2) sorted by relevance

/gem5/ext/pybind11/include/pybind11/
H A Dpytypes.h234 object(handle h, bool is_borrowed) : handle(h) { if (is_borrowed) inc_ref(); } argument
782 Name(handle h, bool is_borrowed) : Parent(is_borrowed ? Parent(h, borrowed_t{}) : Parent(h, stolen_t{})) { } \
1149 capsule(PyObject *ptr, bool is_borrowed) : object(is_borrowed ? object(ptr, borrowed_t{}) : object(ptr, stolen_t{})) { } argument
H A Dnumpy.h847 array_t(handle h, bool is_borrowed) : array(raw_array_t(h.ptr()), stolen_t{}) {
849 if (!is_borrowed) Py_XDECREF(h.ptr());

Completed in 21 milliseconds