摘要: shared_ptr std::shared_ptr<int> sp1 = new int(); // shared count = 1, weak count = 0 std::shared_ptr<int> sp2(sp1); // shared count = 2, weak count = 阅读全文
posted @ 2022-07-23 10:21 山岚2013 阅读(88) 评论(0) 推荐(0) 编辑