int main() { Signal<int> sig; sig.AddListener(argHandler); sig.AddListener(noargHandler); sig.Dispatch(22); }
int main() { Signal<int, int> sig; sig.AddListener(twoArgHandler); sig.AddListener([](int a, int b) { oneArgHandler(a); }); sig.AddListener(noArgHandler); sig.Dispatch(22, 12); }