摘要: std::weak_ptr 避免shared_ptr内存泄漏的利器。👈 smart pointer 三兄弟性格各异。unque_ptr是独来独往,shared_ptr是左拥右抱,而weak_ptr生来就不是为了单打独斗,了解之后你会发现他总是和shared_ptr出双入对。 既然shared_pt 阅读全文
posted @ 2019-03-20 19:30 yocichen 阅读(5022) 评论(0) 推荐(0) 编辑