Skip to content

Implement a hash table iterator over key/value pairs #6426

Description

@Rot127

We have ht_xx_as_iter and ht_xx_as_iter_keys, but not ht_xx_as_iter_kv.

There are situations though in which we need both, the value and the key.
Currently, this means iterating over the keys and use ht_xx_find to get the value.
This is inefficient, because the find() call is O(n).

Having an ht_xx_as_iter_kv would be rather nice for these cases.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions