Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ cast
Method
cast
include/pybind11/cast.h:1552–1554 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1550
}
1551
1552
static handle cast(const handle &src, return_value_policy /* policy */, handle /* parent */) {
1553
return src.inc_ref();
1554
}
1555
PYBIND11_TYPE_CASTER(type, handle_type_name<type>::name);
1556
};
1557
Callers
nothing calls this directly
Calls
1
inc_ref
Method · 0.80
Tested by
no test coverage detected