2005/07/14

指向成員函式的指標

宣告方法:
typedef void (C::*PFUNC)(void);
PFUNC pf = &C::f;


呼叫方法:
(this->*pf)();

沒有留言: