dangling object
常见例句
- A dangling alias occurs when two classes each think (mistakenly) that they hold the only writeable reference to a given object.
儅兩個類都(錯誤地)認爲自己保存有對給定對象的惟一可寫的引用時,就會出現懸空指針。 - 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.
爲了避免懸空指針(一種危險的情況,即一塊內存已經被釋放了,而一個指針還在引用它),必須在最後的引用釋放之後才刪除對象。 返回 dangling object