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

[range.adaptors] Move [range.chunk.by] after [range.chunk] #5644

Open
JohelEGP opened this issue Jul 24, 2022 · 4 comments
Open

[range.adaptors] Move [range.chunk.by] after [range.chunk] #5644

JohelEGP opened this issue Jul 24, 2022 · 4 comments

Comments

@JohelEGP
Copy link
Contributor

1658676830

@tkoeppe
Copy link
Contributor

tkoeppe commented Sep 16, 2022

Also "As const view" could move up next to "As rvalue view".

@jensmaurer Do you think those are useful rearrangements?

@tkoeppe
Copy link
Contributor

tkoeppe commented Sep 16, 2022

And we can move "slide view" up to just after the "adjacent" views, since they both produce "subranges" rather than elements, i.e. elements of the original range are seen repeatedly.

@JohelEGP
Copy link
Contributor Author

JohelEGP commented Apr 1, 2023

There's room for further more improvement. Here's my compiled suggestion.

  • Transforms: (All, as rvalue, as const, transform, common, elements)
    • (All, common) change the input range's interface only.
    • (As rvalue, as const, transform, elements) transform the elements.
  • Subsets: (Filter, take, drop, counted, stride)
  • Subranges: (Split, adjacent, chunk, slide)
  • Packers: (Zip, cartesian product, enumerate)
  • Join, reverse.
Before After
1680350836 1680360990
\rSec2[range.adaptor.transforms]{Transforms}

\rSec3[range.adaptor.transforms.general]{General}

Subclause \ref{range.adaptor.transforms} describes range adaptors
that transform a range's model or elements.

\rSec2[range.adaptor.subsets]{Subsets}

\rSec3[range.adaptor.subsets.general]{General}

Subclause \ref{range.adaptor.subsets} describes range adaptors
whose elements are a subset of a range.

\rSec2[range.adaptor.subranges]{Subranges}

\rSec3[range.adaptor.subranges.general]{General}

Subclause \ref{range.adaptor.subranges} describes range adaptors
whose elements are ranges of a range.

\rSec2[range.adaptor.packers]{Packers}

\rSec3[range.adaptor.packers.general]{General}

Subclause \ref{range.adaptor.packers} describes range adaptors
whose elements are tuples of elements from various ranges.

@jensmaurer
Copy link
Member

Generally agreed here; maybe "transforms" -> "transformations".

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

3 participants