更新时间:2023-01-17 18:10:29
不可能的。
有黑客模仿删除。
但是,没有,那么实际上将删除该指针所指向的节点。
删除以下节点,并复制其内容的实际节点要删除的流行的解决方案有副作用,如果你有外部指针强>指向列表中的节点,在这种情况下,指向后面的节点的外部指针将成为悬挂
The popular solution of deleting the following node and copying its contents to the actual node to be deleted has side-effects if you have external pointers pointing to nodes in the list, in which case an external pointer pointing to the following node will become dangling.
您可以找到SO here.