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

Are BTreeSet iterators guaranteed to visit elements in ascending order? #38204

Closed
Ms2ger opened this issue Dec 7, 2016 · 4 comments
Closed
Assignees

Comments

@Ms2ger
Copy link
Contributor

Ms2ger commented Dec 7, 2016

On IRC, we established that they probably do. We should document that.

CC @steveklabnik

@sfackler sfackler added the A-docs label Dec 7, 2016
@steveklabnik
Copy link
Member

/cc @rust-lang/libs , is this true or not?

@sfackler
Copy link
Member

sfackler commented Dec 7, 2016

It is guaranteed I believe.

@frewsxcv
Copy link
Member

frewsxcv commented Dec 7, 2016

It looks like this is already documented in all iterator methods in the docs for BTreeSet (ctrl-f for "in ascending order"), just not BTreeSet::iter.

@frewsxcv frewsxcv self-assigned this Dec 7, 2016
@frewsxcv
Copy link
Member

frewsxcv commented Dec 7, 2016

Will be fixed by #38208

frewsxcv added a commit to frewsxcv/rust that referenced this issue Dec 7, 2016
frewsxcv added a commit to frewsxcv/rust that referenced this issue Dec 15, 2016
@bors bors closed this as completed in fe0d092 Dec 21, 2016
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

4 participants