File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 9497
9497
\begin{example}
9498
9498
\begin{codeblock}
9499
9499
vector<int> vec{ 1, 2, 3 };
9500
- for (auto [index, value] : enumerate(vec) )
9500
+ for (auto [index, value] : views:: enumerate(vec))
9501
9501
cout << index << ":" << value << ' '; // prints \tcode{0:1 1:2 2:3}
9502
9502
\end{codeblock}
9503
9503
\end{example}
9641
9641
noexcept(noexcept(ranges::iter_move(i.@\exposid{current_}@)) &&
9642
9642
is_nothrow_move_constructible_v<range_rvalue_reference_t<@\exposid{Base}@>>) {
9643
9643
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_}@));
9645
9645
}
9646
9646
};
9647
9647
}
9885
9885
9886
9886
\indexlibrarymember{operator-}{enumerate_view::\exposid{iterator}}%
9887
9887
\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)
9889
9889
requires @\libconcept{random_access_range}@<@\exposid{Base}@>;
9890
9890
\end{itemdecl}
9891
9891
9902
9902
9903
9903
\indexlibrarymember{operator-}{enumerate_view::\exposid{iterator}}%
9904
9904
\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);
9906
9906
\end{itemdecl}
9907
9907
9908
9908
\begin{itemdescr}
You can’t perform that action at this time.
0 commit comments