MCPcopy Create free account
hub / github.com/pybind/pybind11 / reinterpret_borrow

Function reinterpret_borrow

include/pybind11/pytypes.h:484–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482\endrst */
483template <typename T>
484T reinterpret_borrow(handle h) {
485 return {h, object::borrowed_t{}};
486}
487
488/** \rst
489 Like `reinterpret_borrow`, but steals the reference.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected