Searched refs:borrowed_t (Results 1 – 4 of 4) sorted by relevance
/external/python/pybind11/include/pybind11/ |
D | pytypes.h | 279 struct borrowed_t { }; struct 287 object(handle h, borrowed_t) : handle(h) { inc_ref(); } in object() argument 304 template <typename T> T reinterpret_borrow(handle h) { return {h, object::borrowed_t{}}; } in reinterpret_borrow() 796 …Name(handle h, bool is_borrowed) : Parent(is_borrowed ? Parent(h, borrowed_t{}) : Parent(h, stolen… in PYBIND11_NAMESPACE_END() 797 Name(handle h, borrowed_t) : Parent(h, borrowed_t{}) { } \ 912 static type of(handle h) { return type(type::handle_of(h), borrowed_t{}); } in of() 925 static type of() {return type(type::handle_of<T>(), borrowed_t{}); } in of() 1067 none() : object(Py_None, borrowed_t{}) { } in PYBIND11_OBJECT() 1073 ellipsis() : object(Py_Ellipsis, borrowed_t{}) { } in PYBIND11_OBJECT() 1079 bool_() : object(Py_False, borrowed_t{}) { } in PYBIND11_OBJECT_CVT() [all …]
|
D | numpy.h | 847 array_t(handle h, borrowed_t) : array(h, borrowed_t{}) { }
|
/external/python/pybind11/docs/ |
D | upgrade.rst | 332 should be used directly instead: ``borrowed_t{}`` and ``stolen_t{}``
|
D | changelog.rst | 1061 Use ``py::object::borrowed_t{}``/``py::object::stolen_t{}`` instead.
|