首页UC › C++的Delegate模式

C++的Delegate模式

C++的Delegate模式

1.Construct the abstract delegate base class

2.Construct a derive class which accepts a static/global function pointer

3.Construct another derive class which accepts a member function pointer

4.Now glue up all the stuffs

5.And the output is

发表评论