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

P2442R1 Windowing range adaptors: views::chunk and views::slide #5249

Merged
merged 1 commit into from Feb 20, 2022

Conversation

jensmaurer
Copy link
Member

@jensmaurer jensmaurer commented Feb 4, 2022

  • Fix return type in description of chunk_view::inner-iterator::operator++.

Fixes #5271
Fixes cplusplus/papers#1108

Copy link
Contributor

@JohelEGP JohelEGP left a comment

Choose a reason for hiding this comment

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

slide_view's begin and end have descriptions like:

Returns:

  • If cond, a.
  • Otherwise, b.

IIRC, they are done like this in <algorithm>:

Returns:

  • If cond, returns a.
  • Otherwise, returns b.

The latter is certainly clearer. Is this worth pursuing (at this time or otherwise)?

Also applies to https://github.com/cplusplus/draft/pull/5249/files#diff-015716b0f124dba6acb7cdf24285de5d954d0958ca8abbb2ad82a015d1852a9eR11489-R11493 and https://github.com/cplusplus/draft/pull/5249/files#diff-015716b0f124dba6acb7cdf24285de5d954d0958ca8abbb2ad82a015d1852a9eR11592-R11595.

source/ranges.tex Outdated Show resolved Hide resolved
source/ranges.tex Outdated Show resolved Hide resolved
source/ranges.tex Outdated Show resolved Hide resolved
source/ranges.tex Outdated Show resolved Hide resolved
source/ranges.tex Outdated Show resolved Hide resolved
source/ranges.tex Outdated Show resolved Hide resolved
source/ranges.tex Outdated Show resolved Hide resolved
source/ranges.tex Outdated Show resolved Hide resolved
source/ranges.tex Outdated Show resolved Hide resolved
source/ranges.tex Outdated Show resolved Hide resolved
@jensmaurer jensmaurer force-pushed the motions-2022-02-lwg-12 branch 3 times, most recently from 0351517 to c06b69a Compare February 5, 2022 09:48
@jensmaurer
Copy link
Member Author

Thanks for all the fixes!

@jensmaurer jensmaurer added this to the post-2022-02 milestone Feb 7, 2022
@jensmaurer jensmaurer marked this pull request as ready for review February 7, 2022 19:58
@tkoeppe tkoeppe force-pushed the motions-2022-02-lwg-12 branch 2 times, most recently from 3d4ae2a to dbc0e91 Compare February 20, 2022 21:44
 - Fix return type in description of chunk_view::inner-iterator::operator++.
 - Add reference to last_ele_ for ambiguous "if present" phrases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants