![]() |
LibraryLink Utilities
3.0.1
Modern C++ wrapper over LibraryLink and WSTP
|
Wraps an arbitrary callable object (possibly binding its arguments) to be evaluated later. The callable object, when called on provided arguments, must return void.
#include <Utilities.h>
Public Member Functions | |
| template<typename F , typename = std::enable_if_t<!std::is_same_v<std::remove_cv<F>, FunctionWrapper>>> | |
| FunctionWrapper (F &&f) | |
| Create a FunctionWrapper from any callable object by performing type-erasure. More... | |
| template<typename F , typename... Args> | |
| FunctionWrapper (F &&f, Args &&... args) | |
| Create a FunctionWrapper from a callable object and arguments for the call. More... | |
| void | operator() () |
| Call the internal callable object. More... | |
|
inlineexplicit |
Create a FunctionWrapper from any callable object by performing type-erasure.
| F | - any callable type (function, lambda, member function, etc) |
| f | - a callable object of type F |
|
inlineexplicit |
Create a FunctionWrapper from a callable object and arguments for the call.
| F | - any callable type (function, lambda, member function, etc) |
| Args | - function call argument types |
| f | - a callable object of type F |
| args | - function call arguments |
|
inline |
Call the internal callable object.