Events in C++

后端 未结 5 903
遇见更好的自我
遇见更好的自我 2021-01-31 10:32

I\'m not sure how to look for this online... I think they might be called something different in C++

I want to have a simple event system, somthing like

         


        
5条回答
  •  死守一世寂寞
    2021-01-31 10:47

    The observer pattern from the GOF is pretty much what you want.

    In the book, it has C++ code for this...

    Also, as always, Boost has stuff you can make use of as well

提交回复
热议问题