C++智能指針及其簡單實現

原文連接:http://www.cnblogs.com/xiehongfeng100/p/4645555.htmlhtml 基於引用計數的智能指針能夠簡單實現以下(詳細解釋見程序中註釋):ios 1 #include <iostream> 2 using namespace std; 3 4 template<class T> 5 class SmartPtr 6 { 7 publ
相關文章
相關標籤/搜索