Skip to content

Commit b8df7c7

Browse files
jensmaurerJohelEGP
andauthored
Apply suggestions from code review
Co-authored-by: Johel Ernesto Guerrero Peña <[email protected]>
1 parent 9445e0a commit b8df7c7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

source/ranges.tex

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5822,7 +5822,7 @@
58225822

58235823
\pnum
58245824
\tcode{join_with_view} takes a \libconcept{view} and a delimiter, and
5825-
flattens the view,
5825+
flattens the \libconcept{view},
58265826
inserting every element of the delimiter
58275827
in between elements of the \libconcept{view}.
58285828
The delimiter can be a single element or a \libconcept{view} of elements.
@@ -5901,7 +5901,7 @@
59015901

59025902
constexpr auto end() {
59035903
if constexpr (@\libconcept{forward_range}@<V> &&
5904-
is_reference_v<InnerRng> && @\libconcept{forward_range}@<@\exposid{InnerRng}@> &&
5904+
is_reference_v<@\exposid{InnerRng}@> && @\libconcept{forward_range}@<@\exposid{InnerRng}@> &&
59055905
@\libconcept{common_range}@<V> && @\libconcept{common_range}@<@\exposid{InnerRng}@>)
59065906
return @\exposid{iterator}@<@\exposconcept{simple-view}@<V> && @\exposconcept{simple-view}@<Pattern>>{*this, ranges::end(@\exposid{base_}@)};
59075907
else
@@ -5922,7 +5922,7 @@
59225922
template<class R, class P>
59235923
join_with_view(R&&, P&&) -> join_with_view<views::all_t<R>, views::all_t<P>>;
59245924

5925-
template<input_range R>
5925+
template<@\libconcept{input_range}@ R>
59265926
join_with_view(R&&, range_value_t<range_reference_t<R>>)
59275927
-> join_with_view<views::all_t<R>, single_view<range_value_t<range_reference_t<R>>>>;
59285928
}
@@ -5940,7 +5940,7 @@
59405940
\end{itemdescr}
59415941

59425942
\begin{itemdecl}
5943-
template<input_range R>
5943+
template<@\libconcept{input_range}@ R>
59445944
requires @\libconcept{constructible_from}@<V, views::all_t<R>> &&
59455945
@\libconcept{constructible_from}@<Pattern, single_view<range_value_t<@\exposid{InnerRng}@>>>
59465946
constexpr join_with_view(R&& r, range_value_t<@\exposid{InnerRng}@> e);
@@ -6005,7 +6005,7 @@
60056005
requires @\exposid{ref-is-glvalue}@ && @\libconcept{bidirectional_range}@<@\exposid{Base}@> &&
60066006
@\exposconcept{bidirectional-common}@<@\exposid{InnerBase}@> && @\exposconcept{bidirectional-common}@<@\exposid{PatternBase}@>;
60076007
constexpr @\exposid{iterator}@ operator--(int)
6008-
requires @\exposid{ref-is-glvalue}@ && @\libconcept{bidirectional_range}@<Base> &&
6008+
requires @\exposid{ref-is-glvalue}@ && @\libconcept{bidirectional_range}@<@\exposid{Base}@> &&
60096009
@\exposconcept{bidirectional-common}@<@\exposid{InnerBase}@> && @\exposconcept{bidirectional-common}@<@\exposid{PatternBase}@>;
60106010

60116011
friend constexpr bool operator==(const @\exposid{iterator}@& x, const @\exposid{iterator}@& y)
@@ -6123,7 +6123,7 @@
61236123
\effects
61246124
Equivalent to:
61256125
\begin{codeblock}
6126-
if constexpr (ref-is-glvalue)
6126+
if constexpr (@\exposid{ref-is-glvalue}@)
61276127
return *x;
61286128
else
61296129
return *@\exposid{parent_}@->@\exposid{inner_}@;
@@ -6312,7 +6312,7 @@
63126312
\effects
63136313
Equivalent to:
63146314
\begin{codeblock}
6315-
iterator tmp = *this;
6315+
@\exposid{iterator}@ tmp = *this;
63166316
--*this;
63176317
return tmp;
63186318
\end{codeblock}
@@ -6359,7 +6359,7 @@
63596359
\end{codeblock}
63606360

63616361
\begin{itemdecl}
6362-
constexpr explicit sentinel(Parent& parent);
6362+
constexpr explicit @\exposid{sentinel}@(@\exposid{Parent}@& parent);
63636363
\end{itemdecl}
63646364

63656365
\begin{itemdescr}

0 commit comments

Comments
 (0)