Skip to content

实现更稳定的iterator #7

@ABackerNINI

Description

@ABackerNINI

任何插入、删除、替换操作都极有可能使现在的iterator失效。

一个设计思路是,将iterator设计成智能指针形式,在插入删除等操作时对其进行维护。
另一个思路是,将插入删除等操作函数中的iterator参数改为引用,并对其进行维护。
两种思路都有其局限性,但暂时没有更好的设计方案。

暂时决定采用第一种方案。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions