#include <icy/delegate.h>Abstract delegate interface.
The Delegate class contains a pointer to a function. This wrapper class is used instead of std::function since it is interchangable with fast delegates and also provides an equality operator for comparing the underlying function where supported.
| Return | Name | Description |
|---|---|---|
RT | operator() const | Invokes the underlying callable with the supplied arguments. |
bool | operator== const | Compares two delegates for equality (same target function and instance). |
const
RT operator()(Args... args) constInvokes the underlying callable with the supplied arguments.
args Arguments forwarded to the wrapped function.Result of the wrapped function call.
const
bool operator==(const AbstractDelegate< RT, Args... > & that) constCompares two delegates for equality (same target function and instance).
that Other delegate to compare against.True if both delegates refer to the same callable target.