allenchou.net
Signal System using Delegates | Ming-Lun "Allen" Chou | 周明倫
I introduced how to build your own C++ delegates in the previous post. Now I'm going to show you the first practical (and probably the most common) usage of delegates: signal/event systems. To clarify the terminology, the mapping between the system I'm going to show here and the terms in the Observer Pattern is as