[FunctionDelegate]({#ref structicy_1_1FunctionDelegate #}) contains a std::function.#include <icy/delegate.h>Inherits:
AbstractDelegate< RT, Args... >
The [FunctionDelegate](#functiondelegate) contains a std::function.
| Return | Name | Description |
|---|---|---|
std::function< RT(Args...)> | func |
std::function< RT(Args...)> func| Return | Name | Description |
|---|---|---|
FunctionDelegate inline | #### Parameters | |
RT | operator() virtual const inline | Calls the wrapped std::function. |
bool | operator== virtual const inline | Always returns false; std::function targets cannot be compared for equality. |
inline
inline FunctionDelegate(std::function< RT(Args...)> func)func std::function to wrap.virtual const inline
virtual inline RT operator()(Args... args) constCalls the wrapped std::function.
args Arguments forwarded to the function.Function result.
virtual const inline
virtual inline bool operator==(const AbstractDelegate< RT, Args... > &) constAlways returns false; std::function targets cannot be compared for equality.