We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 09c91df + 333b6eb commit 3c596edCopy full SHA for 3c596ed
source/algorithms.tex
@@ -222,13 +222,13 @@
222
If \range{a}{b} denotes a range,
223
the semantics of \tcode{b - a} in these cases are the same as those of
224
\begin{codeblock}
225
-iter_difference_t<remove_reference_t<decltype(a)>> n = 0;
+iter_difference_t<decltype(a)> n = 0;
226
for (auto tmp = a; tmp != b; ++tmp) ++n;
227
return n;
228
\end{codeblock}
229
and if \range{b}{a} denotes a range, the same as those of
230
231
-iter_difference_t<remove_reference_t<decltype(b)>> n = 0;
+iter_difference_t<decltype(b)> n = 0;
232
for (auto tmp = b; tmp != a; ++tmp) --n;
233
234
0 commit comments