Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template data structures should implement iterators #27

Open
jpswinski opened this issue Sep 24, 2020 · 2 comments
Open

Template data structures should implement iterators #27

jpswinski opened this issue Sep 24, 2020 · 2 comments

Comments

@jpswinski
Copy link
Member

The first//last functions for dictionary, list, ordering, and table should be made const. To do so, the first and last functions should return an iterator that maintains the state of the iteration.

For example:
for(iterator entry = dict.first(); entry.valid(); entry.next()) {...}

iter can hold a key and value pair of type T.

@jpswinski
Copy link
Member Author

Iterators have been implemented for dictionaries and lists.

@jpswinski
Copy link
Member Author

And now also for orderings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant