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

Function cast

include/pybind11/complex.h:82–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80 }
81
82 static handle
83 cast(const std::complex<T> &src, return_value_policy /* policy */, handle /* parent */) {
84 return PyComplex_FromDoubles((double) src.real(), (double) src.imag());
85 }
86
87 PYBIND11_TYPE_CASTER(
88 std::complex<T>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected