Skip to content

Implementing Iterators for iterating containers. #1

@SharonIV0x86

Description

@SharonIV0x86

Implementing Basic iterators for iterating containers and adding more iterator methods

My basic idea is to create a iterator struct inside the vector struct so that each vector will have a iterator associated with it.
The iterator struct will have defined methods like the C++ iterators have See so that we can user (.) operator to call the iterator associated with it.

And making each iterator struct's object/variable as a stand alone datatype which can be used to iterate vector for now only, but the issue with this is whether to choose if the iterator will have a type, like in C++ there are iterator of all datatype so how to implement something similar in this scenario.

Feel free to share any ideas.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions