【more effective c++读书笔记】【第5章】技术(5)——Reference counting(引用计数)(2)
摘要:
三、引用计数基类和智能指针实现的String类//RCObject.h#ifndef RCOBJECT_H#define RCOBJECT//引用计数基类class RCObject{public: void addReference();//增加引用计数 void removeReference(... 阅读全文
posted @ 2015-09-07 16:37 ruan875417 阅读(140) 评论(0) 推荐(0) 编辑