mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 05:05:11 +00:00
1ac19036d6
```c++ m.def("foo", foo, py::call_guard<T>()); ``` is equivalent to: ```c++ m.def("foo", [](args...) { T scope_guard; return foo(args...); // forwarded arguments }); ``` |
||
---|---|---|
.. | ||
cast | ||
pycpp | ||
classes.rst | ||
exceptions.rst | ||
functions.rst | ||
misc.rst | ||
smart_ptrs.rst |