Skip to content

Added arrow operator to ValueIterator and ValueConstIterator #41

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

Merged

Conversation

bmcdorman
Copy link
Contributor

When using ValueIterator or ValueConstIterator, it is necessary to dereference and use the dot operator to access the underlying value. STL Iterators, however, also override the arrow operator to provide shorthand for this.

For example, (*it).a is equivalent to it->a.

This pull request overrides the arrow operator to provide this functionality.

@cdunn2001 cdunn2001 merged this pull request into open-source-parsers:master Sep 14, 2014
cdunn2001 added a commit that referenced this pull request Sep 14, 2014
Added arrow operator to ValueIterator and ValueConstIterator
@bmcdorman bmcdorman deleted the feature-arrow_operator branch September 15, 2014 02:24
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

Successfully merging this pull request may close these issues.

None yet

2 participants