Searched refs:stolen_t (Results 1 – 4 of 4) sorted by relevance
/external/python/pybind11/include/pybind11/ |
D | pytypes.h | 280 struct stolen_t { }; struct 288 object(handle h, stolen_t) : handle(h) { } in object() argument 314 template <typename T> T reinterpret_steal(handle h) { return {h, object::stolen_t{}}; } in reinterpret_steal() 796 … h, bool is_borrowed) : Parent(is_borrowed ? Parent(h, borrowed_t{}) : Parent(h, stolen_t{})) { } \ in PYBIND11_NAMESPACE_END() 798 Name(handle h, stolen_t) : Parent(h, stolen_t{}) { } \ 809 : Parent(check_(o) ? o.inc_ref().ptr() : ConvertFun(o.ptr()), stolen_t{}) \ 812 : Parent(check_(o) ? o.release().ptr() : ConvertFun(o.ptr()), stolen_t{}) \ 940 : object(PyUnicode_FromStringAndSize(c, (ssize_t) n), stolen_t{}) { in PYBIND11_OBJECT_CVT() 946 : object(PyUnicode_FromString(c), stolen_t{}) { in object() argument 958 …explicit str(handle h) : object(raw_str(h.ptr()), stolen_t{}) { if (!m_ptr) throw error_already_se… in str() [all …]
|
D | numpy.h | 848 array_t(handle h, stolen_t) : array(h, stolen_t{}) { } 851 array_t(handle h, bool is_borrowed) : array(raw_array_t(h.ptr()), stolen_t{}) { 856 array_t(const object &o) : array(raw_array_t(o.ptr()), stolen_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.
|