Namespaces
Records
Functions
-
template <typename C, typename... T>auto Capture (C callback, T *... ptrs)Takes a callback, and a list of pointers. Returns a lambda that takes a list
of objects, saves these in the pointed variables and runs the callback.
If one wants to ignore one of the captured value, one can pass
&std
::ignore.
Defined at line 18 of file ../../src/lib/callback/capture.h
-
template <typename Wtypename T>internal::ScopedLambda<W, T> MakeScoped (W witnessT lambda)Scopes the given |lambda| to the given |witness|.
This returns a new callable with the same signature as the original one.
Calling the new callable will be forwarded to |lambda| if and only if
|witness| is true at the time where the callable is called.
Defined at line 46 of file ../../src/lib/callback/scoped_callback.h