Skip to content

IndexMap/IndexSet: deprecate remove() in favour of swap_remove #679

Description

@sgued

.remove does not convey the current behaviour that it changes the insertion order of the values in the map/set. indexmap deprecated the method in favour of the more explicit swap_remove.

We should add swap_remove where it's missing and mark remove as deprecated, following the IndexMap API.

Since I anticipate there could be discussion on whether this is the best path forward, I did not include this change in #673.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions