MCPcopy Create free account
hub / github.com/pybind/pybind11 / operator()

Method operator()

include/pybind11/functional.h:51–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49struct func_wrapper : func_wrapper_base {
50 using func_wrapper_base::func_wrapper_base;
51 Return operator()(Args... args) const { // NOLINT(performance-unnecessary-value-param)
52 gil_scoped_acquire acq;
53 // casts the returned object as a rvalue to the return type
54 return hfunc.f(std::forward<Args>(args)...).template cast<Return>();
55 }
56};
57
58PYBIND11_NAMESPACE_END(type_caster_std_function_specializations)

Callers

nothing calls this directly

Calls 1

fMethod · 0.45

Tested by

no test coverage detected