2018年2月26日

借助boost bind/function来实现基于对象编程。

摘要: boost bind/function库的使用: 替换了stl中mem_fun,bind1st,bin2nd等函数。用户注册回调函数需要利用boost/bind转化成库中boost/function格式的函数。然后调用库的时候就可以回调用户注册的处理函数了。bind也可以将成员函数转换成boost/ 阅读全文

posted @ 2018-02-26 17:16 wsw_seu 阅读(207) 评论(0) 推荐(0)

导航