摘要:
boost::intrusive_ptr一种“侵入式”的引用计数指针,它实际并不提供引用计数功能,而是要求被存储的对象自己实现引用计数功能,并提供intrusive_ptr_add_ref和intrusive_ptr_release函数接口供boost::intrusive_ptr调用。 下面通过一 阅读全文
posted @ 2016-03-19 23:58 sunshinewave 阅读(819) 评论(0) 推荐(0)
|
摘要:
boost::intrusive_ptr一种“侵入式”的引用计数指针,它实际并不提供引用计数功能,而是要求被存储的对象自己实现引用计数功能,并提供intrusive_ptr_add_ref和intrusive_ptr_release函数接口供boost::intrusive_ptr调用。 下面通过一 阅读全文
posted @ 2016-03-19 23:58 sunshinewave 阅读(819) 评论(0) 推荐(0)
摘要:
1. 声明#include <boost/shared_ptr.hpp> class UsersBitmap { ... } typedef boost::shared_ptr<UsersBitmap> UsersBitmapPtr; 2. 使用 UsersBitmapPtr login_users 阅读全文
posted @ 2016-03-19 22:56 sunshinewave 阅读(14125) 评论(0) 推荐(0) |
||