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