call_guard< Ts > Struct Template Reference

#include <attr.h>

Detailed Description

template<typename... Ts>
struct call_guard< Ts >

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
});

Definition at line 95 of file attr.h.


The documentation for this struct was generated from the following file:


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:47