Skip to content

VectorIterator as random_access_iterator #4095

@krupnov

Description

@krupnov

Hi.

Is it possible to extend VectorIterator so it would be random access? It would be very useful for stl function like std::lower_bound, std::distance so on.
For now I have to implement all that functionality myself with Get function. LookupByKey already uses std::bsearch.

So please tell me what is the reason we don't have random access iterator?

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