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

Method cast

include/pybind11/cast.h:768–770  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

766
767 template <typename T>
768 static handle cast(T &&src, return_value_policy policy, handle parent) {
769 return cast_impl(std::forward<T>(src), policy, parent, indices{});
770 }
771
772 // copied from the PYBIND11_TYPE_CASTER macro
773 template <typename T>

Callers

nothing calls this directly

Calls 5

cast_implFunction · 0.85
noneClass · 0.85
moveFunction · 0.85
releaseMethod · 0.80
castFunction · 0.70

Tested by

no test coverage detected