c++ shared_ptr 使用注意事项. 2

1.抛弃临时对象,让全部的智能指针都有名字.html   2.类向外传递 this 的  shared_ptr post    让类继承   enable_shared_from_this. 而后返回  shared_from_this();this   3. 例子有时间再补上.   指针         转载于:https://www.cnblogs.com/daihanlong/p/47163
相关文章
相关标签/搜索