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

Method cast

include/pybind11/cast.h:898–901  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

896 explicit operator holder_type &() { return holder; }
897
898 static handle cast(const holder_type &src, return_value_policy, handle) {
899 const auto *ptr = holder_helper<holder_type>::get(src);
900 return type_caster_base<type>::cast_holder(ptr, &src);
901 }
902
903protected:
904 friend class type_caster_generic;

Callers

nothing calls this directly

Calls 1

getFunction · 0.85

Tested by

no test coverage detected