dangling pointer
...悬垂指针(dangling pointer) 指向曾经存在的对象的指针,但该对象已经不再存在了。悬垂指针容易导致程序错误,而且这种错误很难检测出来。
基于120个网页-相关网页
尤其是,类本身无法避免悬垂指针。
In particular, the class itself has no way to avoid dangling Pointers.
youdao
使用无效迭代器是没有定义的,可能会导致与悬垂指针相同的问题。
Using an invalidated iterator is undefined, and likely to lead to the same kinds of problems as using a dangling pointer.
指向曾经存在的对象,但该对象已经不再存在了,此类指针称为悬垂指针。结果未定义,往往导致程序错误,而且难以检测。
详细内容
应用推荐
模块上移
模块下移
不移动