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

Method pyobject_caster

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

Source from the content-addressed store, hash-verified

1528struct pyobject_caster {
1529 template <typename T = type, enable_if_t<std::is_same<T, handle>::value, int> = 0>
1530 pyobject_caster() : value() {}
1531
1532 // `type` may not be default constructible (e.g. frozenset, anyset). Initializing `value`
1533 // to a nil handle is safe since it will only be accessed if `load` succeeds.

Callers

nothing calls this directly

Calls 1

handleFunction · 0.70

Tested by

no test coverage detected