Skip to content

Commit 66b3e76

Browse files
tkoeppehewillk
andauthored
Apply suggestions from code review
Co-authored-by: Hewill Kang <[email protected]>
1 parent 2765d97 commit 66b3e76

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/ranges.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9497,7 +9497,7 @@
94979497
\begin{example}
94989498
\begin{codeblock}
94999499
vector<int> vec{ 1, 2, 3 };
9500-
for (auto [index, value] : enumerate(vec) )
9500+
for (auto [index, value] : views::enumerate(vec))
95019501
cout << index << ":" << value << ' '; // prints \tcode{0:1 1:2 2:3}
95029502
\end{codeblock}
95039503
\end{example}
@@ -9641,7 +9641,7 @@
96419641
noexcept(noexcept(ranges::iter_move(i.@\exposid{current_}@)) &&
96429642
is_nothrow_move_constructible_v<range_rvalue_reference_t<@\exposid{Base}@>>) {
96439643
return tuple<difference_type,
9644-
range_rvalue_reference_t<@\exposid{Base}@>>(@\exposid{pos_}@, ranges::iter_move(i.@\exposid{current_}@));
9644+
range_rvalue_reference_t<@\exposid{Base}@>>(i.@\exposid{pos_}@, ranges::iter_move(i.@\exposid{current_}@));
96459645
}
96469646
};
96479647
}
@@ -9885,7 +9885,7 @@
98859885

98869886
\indexlibrarymember{operator-}{enumerate_view::\exposid{iterator}}%
98879887
\begin{itemdecl}
9888-
constexpr @\exposid{iterator}@ operator-(const @\exposid{iterator}@& x, difference_type y)
9888+
friend constexpr @\exposid{iterator}@ operator-(const @\exposid{iterator}@& x, difference_type y)
98899889
requires @\libconcept{random_access_range}@<@\exposid{Base}@>;
98909890
\end{itemdecl}
98919891

@@ -9902,7 +9902,7 @@
99029902

99039903
\indexlibrarymember{operator-}{enumerate_view::\exposid{iterator}}%
99049904
\begin{itemdecl}
9905-
constexpr difference_type operator-(const @\exposid{iterator}@& x, const @\exposid{iterator}@& y);
9905+
friend constexpr difference_type operator-(const @\exposid{iterator}@& x, const @\exposid{iterator}@& y);
99069906
\end{itemdecl}
99079907

99089908
\begin{itemdescr}

0 commit comments

Comments
 (0)