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

Method operator()

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

Source from the content-addressed store, hash-verified

2406template <typename Derived>
2407template <return_value_policy policy, typename... Args>
2408object object_api<Derived>::operator()(Args &&...args) const {
2409#ifndef NDEBUG
2410 if (!PyGILState_Check()) {
2411 pybind11_fail("pybind11::object_api<>::operator() PyGILState_Check() failure.");
2412 }
2413#endif
2414 return detail::collect_arguments<policy>(std::forward<Args>(args)...).call(derived().ptr());
2415}
2416
2417template <typename Derived>
2418template <return_value_policy policy, typename... Args>

Callers

nothing calls this directly

Calls 3

derivedClass · 0.85
ptrMethod · 0.80
callMethod · 0.45

Tested by

no test coverage detected