Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Replace post-increment and post-decrement boilerplate for iterators #4690

Copy link
Copy link
Open
@jwakely

Description

@jwakely
Issue body actions

Many iterators defined in the library repeat the same wording:

Effects: Equivalent to:

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

We should add front matter which says that when no detailed specification is present for operator++(int) it has the semantics shown above, and the equivalent with -- for operator--(int).

This would probably belong in [functions.within.classes].

This touches a lot of the library and should probably get checked by LWG, but still seems editorial to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lwgIssue must be reviewed by LWG.Issue must be reviewed by LWG.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.