Skip to content

Add fast reverse iterators to C++/WinRT#500

Merged
kennykerr merged 2 commits into
masterfrom
kennykerr-rbegin
Jul 9, 2019
Merged

Add fast reverse iterators to C++/WinRT#500
kennykerr merged 2 commits into
masterfrom
kennykerr-rbegin

Conversation

@kennykerr

Copy link
Copy Markdown
Contributor

Add rbegin and rend ADL functions to complement begin and end and provide reverse iterators for IVector<T> and IVectorView<T>.

Fixes #141

m_index(index)
{}

rfast_iterator& operator++() noexcept

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason not to make this bidirectional, or even random access?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No reason, I've just not come across a motivating use case. I'll add an issue to address this for both begin/rbegin.

@kennykerr kennykerr merged commit 0e0425f into master Jul 9, 2019
@kennykerr kennykerr deleted the kennykerr-rbegin branch July 9, 2019 17:53
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.

Containers like IVector/IObservableVector should support reverse iterators

2 participants