Skip to content

increasing_function should overwrite on insert #8

@RagnarGrootKoerkamp

Description

@RagnarGrootKoerkamp

std::insert doesn't overwrite, while we need this to update an existing index to a better value.
Just using m[x] works, but is much slower.

https://github.com/TimonKnigge/TCR/blob/master/snippets/datastructures/increasing_function.cpp#L12

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