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

Add blanket wording for operator++(int) on iterators #5808

Closed
jwakely opened this issue Sep 3, 2022 · 2 comments
Closed

Add blanket wording for operator++(int) on iterators #5808

jwakely opened this issue Sep 3, 2022 · 2 comments
Assignees

Comments

@jwakely
Copy link
Member

jwakely commented Sep 3, 2022

We have several standard library iterators that define operator++(int) exactly the same way:

auto tmp = *this;
++*this;
return tmp;

We should add blanket wording saying that unless otherwise specified, an operator++(int) is defined that way, and similarly for operator--(int).

@jwakely jwakely self-assigned this Sep 3, 2022
@JohelEGP
Copy link
Contributor

JohelEGP commented Sep 3, 2022

Duplicate of #4690.

@jwakely
Copy link
Member Author

jwakely commented Sep 3, 2022

Oops, forgot I already opened an issue for this, thanks.

@jwakely jwakely closed this as not planned Won't fix, can't repro, duplicate, stale Sep 3, 2022
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

2 participants