Skip to content

<flat_map>, <flat_set>: Unify _Emplace_hint() #6069

@StephanTLavavej

Description

@StephanTLavavej

<flat_map> and <flat_set> have very different implementations of _Emplace_hint(). They should be unified (not literally into the same function, but into very similar code patterns modulo the key/mapped difference).

There may be ways to further simplify them (I think there's too much special-casing of _IsUnique but I'm not certain).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSomething can be improvedflat_meowC++23 container adaptors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions