How to define a general member function pointer

前端 未结 5 903
南方客
南方客 2021-02-14 21:35

I have created a Timer class that must call a callback method when the timer has expired. Currently I have it working with normal function pointers (they are declared as void (

5条回答
  •  北海茫月
    2021-02-14 22:18

    Maybe the standard mem_fun is already good enough for what you want. It's part of STL.

提交回复
热议问题