|
Embedded Template Library 1.0
|
#include <closure.h>
Public Types | |
| typedef TCallback | callback_type |
| The callback type to be invoked. | |
Public Member Functions | |
| closure (const callback_type &f, const TArg0 arg0) | |
| TReturn | operator() () const |
Closure for binding one argument to a callback and invoking it later.
| TReturn | The return type of the callback. |
| TArg0 | The type of the argument. |
| TCallback | The callback type. |
|
inline |
Construct a closure with a callback and its argument.
| f | The callback to be invoked. |
| arg0 | The argument to bind to the callback. |
|
inline |
Invoke the stored callback with the bound argument.