| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| cast | ||
| pycpp | ||
| classes.rst | ||
| exceptions.rst | ||
| functions.rst | ||
| misc.rst | ||
| smart_ptrs.rst |
```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
});
```
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| cast | Loading commit data... | |
| pycpp | Loading commit data... | |
| classes.rst | Loading commit data... | |
| exceptions.rst | Loading commit data... | |
| functions.rst | Loading commit data... | |
| misc.rst | Loading commit data... | |
| smart_ptrs.rst | Loading commit data... |