c++智能指针是一种内存自动管理,这个pdf很赞 http://www.umich.edu/~eecs381/handouts/C++11_smart_ptrs.pdf 转载于:https://www.cnblogs.com/youge-OneSQL/p/9426602.html