cplusplus / draft

C++ standards drafts
http://www.open-std.org/jtc1/sc22/wg21/
5.7k stars 751 forks source link

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

Open JohelEGP opened 2 years ago

JohelEGP commented 2 years ago

1658676830

tkoeppe commented 2 years ago

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

@jensmaurer Do you think those are useful rearrangements?

tkoeppe commented 2 years ago

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 commented 1 year ago

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

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 commented 1 year ago

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