智能指針 auto_ptr、 shared_ptr 、weak_ptr的使用方法及注意事項

#include<iostream> #include<memory> using namespace std; ///////////////////////////////auto_ptr///////////////////////////////////////////////////////////// //boost中 scoped_ptr和auto_ptr一樣 禁止用戶進行拷貝和賦值
相關文章
相關標籤/搜索