... 內部指標p.reset() 放棄內部物件的所有權,等價於p = nullptrp.reset(T. ... weak_ptr 的另一用法是打斷shared_ptr 所管理的物件組成的環狀引用。
確定! 回上一頁