\rst A call policy which places one or more guard variables (Ts...
) around the function call.
More...
#include </builds/ipbus/ipbus-software/uhal/python/pybind11/include/pybind11/attr.h>
\rst A call policy which places one or more guard variables (Ts...
) around the function call.
For example, this definition:
.. code-block:: cpp
m.def("foo", foo, py::call_guard<T>());
is equivalent to the following pseudocode:
.. code-block:: cpp
m.def("foo", [](args...) { T scope_guard; return foo(args...); // forwarded arguments });
\endrst