Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ ensure_object
Function
ensure_object
include/pybind11/pytypes.h:1122–1122 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1120
private:
1121
static object ensure_object(object &&o) { return std::move(o); }
1122
static object ensure_object(handle h) { return reinterpret_borrow<object>(h); }
1123
1124
object &get_cache() const {
1125
if (!cache) {
Callers
1
operator=
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected