Base module
FunctionDelegate
The
[FunctionDelegate](#functiondelegate) contains a std::function.FunctionDelegate
#include <icy/delegate.h>Inherits:
AbstractDelegate< RT, Args... >
The [FunctionDelegate](#functiondelegate) contains a std::function.
Public Attributes
| Return | Name | Description |
|---|---|---|
std::function< RT(Args...)> | func |
func
std::function< RT(Args...)> funcPublic Methods
| 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. |
FunctionDelegate
inline
inline FunctionDelegate(std::function< RT(Args...)> func)Parameters
funcstd::functionto wrap.
operator()
virtual const inline
virtual inline RT operator()(Args... args) constCalls the wrapped std::function.
Parameters
argsArguments forwarded to the function.
Returns
Function result.
operator==
virtual const inline
virtual inline bool operator==(const AbstractDelegate< RT, Args... > &) constAlways returns false; std::function targets cannot be compared for equality.
