2015年9月5日

【more effective c++读书笔记】【第5章】技术(4)——Smart Pointers(智能指针)

摘要: 一、类似C++标准程序库提供的auto_ptr template的智能指针//Smart.h#ifndef SMART_H#define SMART_Htemplateclass SmartPtr{public: SmartPtr(T* realPtr = 0); //构造函数 ~SmartPtr(... 阅读全文

posted @ 2015-09-05 14:02 ruan875417 阅读(112) 评论(0) 推荐(0) 编辑

导航