Lines Matching defs:reinterpret_borrow
233 PYBIND11_DEPRECATED("Use reinterpret_borrow<object>() or reinterpret_steal<object>()")
280 template <typename T> friend T reinterpret_borrow(handle);
298 py::object o = reinterpret_borrow<py::object>(p);
300 py::tuple t = reinterpret_borrow<py::tuple>(p); // <-- `p` must be already be a `tuple`
302 template <typename T> T reinterpret_borrow(handle h) { return {h, object::borrowed_t{}}; }
305 Like `reinterpret_borrow`, but steals the reference.
420 return reinterpret_borrow<object>(default_);
429 return reinterpret_borrow<object>(default_);
492 get_cache() = reinterpret_borrow<object>(object_or_cast(std::forward<T>(value)));
573 return reinterpret_borrow<object>(result);
590 return reinterpret_borrow<object>(result);
781 PYBIND11_DEPRECATED("Use reinterpret_borrow<"#Name">() or reinterpret_steal<"#Name">()") \
1148 PYBIND11_DEPRECATED("Use reinterpret_borrow<capsule>() or reinterpret_steal<capsule>()")
1406 return {derived(), reinterpret_borrow<object>(key)};
1412 return {derived(), reinterpret_borrow<object>(key)};