dangling object
基本解釋
- [計算機科學技術]懸空對象
英漢例句
- A dangling alias occurs when two classes each think (mistakenly) that they hold the only writeable reference to a given object.
儅兩個類都(錯誤地)認爲自己保存有對給定對象的惟一可寫的引用時,就會出現(xiàn)懸空指針。 - To avoid dangling pointers (the dangerous situation where a block of memory is freed but a pointer still references it), you must delete the object only after the last reference is released.
爲了避免懸空指針(一種危險的情況,即一塊內(nèi)存已經(jīng)被釋放了,而一個指針還在引用它),必須在最後的引用釋放之後才刪除對象。
雙語例句
專業(yè)釋義
- 懸空對象