Nebula
|
#include <delegate.h>
Nebula delegate class, allows to store a function, method or lambda call into a C++ object for later execution.
Note that this does not store any objects or capture, meaning these are extremely vulnerable to dangling pointers. This is by design, since it allows us to have much better performance than for example std::function that does expensive runtime heap allocations for storing objects and lambda capture.
Usage:
See http://www.codeproject.com/KB/cpp/ImpossiblyFastCppDelegate.aspx for implementation details.