下圖顯示了指向一個內存位置的幾個 shared_ptr 實例:
作者:linjinhe
鏈接:https://www.jianshu.com/p/30492ff4c87d
來源:簡書
著作權歸作者所有。商業轉載請聯繫作者獲得授權,非商業轉載請註明出處。
參考資料
下圖顯示了指向一個內存位置的幾個 shared_ptr 實例:
參考資料
def ADD(a): print(3,a,hex(id(a))) a.remove(2) print(3,a,hex(id(a))) a=a.append(10)