Delegates are function pointer containers that are used as a generic form of holding function pointers.
template<class T> class ZDelegate { public: List<T> functionList; void operator += (T h) { if(!functionList.Contains(h)) functionList.AddItem(h); } void operator -= (T h) { if(functionList.Contains(h)) functionList.RemoveItem(h); } };
There was an error while loading. Please reload this page.