Skip to content

Commit

Permalink
[alg.lex.comparison,specialized.algorithms] Remove extra whitespace (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lprv authored Dec 25, 2024
1 parent 132691d commit 7337360
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/algorithms.tex
Original file line number Diff line number Diff line change
Expand Up @@ -9453,7 +9453,7 @@
\tcode{ranges::lexicographical_compare(I1, S1, I2, S2, Comp, Proj1, Proj2)}
can be implemented as:
\begin{codeblock}
for ( ; first1 != last1 && first2 != last2 ; ++first1, (void) ++first2) {
for (; first1 != last1 && first2 != last2; ++first1, (void)++first2) {
if (invoke(comp, invoke(proj1, *first1), invoke(proj2, *first2))) return true;
if (invoke(comp, invoke(proj2, *first2), invoke(proj1, *first1))) return false;
}
Expand Down Expand Up @@ -11430,7 +11430,7 @@
\effects
Equivalent to:
\begin{codeblock}
for (; first != last; ++result, (void) ++first)
for (; first != last; ++result, (void)++first)
::new (@\placeholdernc{voidify}@(*result))
typename iterator_traits<NoThrowForwardIterator>::value_type(*first);
\end{codeblock}
Expand Down Expand Up @@ -11486,7 +11486,7 @@
\effects
Equivalent to:
\begin{codeblock}
for ( ; n > 0; ++result, (void) ++first, --n)
for (; n > 0; ++result, (void)++first, --n)
::new (@\placeholdernc{voidify}@(*result))
typename iterator_traits<NoThrowForwardIterator>::value_type(*first);
\end{codeblock}
Expand Down Expand Up @@ -11600,7 +11600,7 @@
\effects
Equivalent to:
\begin{codeblock}
for (; n > 0; ++result, (void) ++first, --n)
for (; n > 0; ++result, (void)++first, --n)
::new (@\placeholdernc{voidify}@(*result))
typename iterator_traits<NoThrowForwardIterator>::value_type(@\exposid{deref-move}@(first));
return {first, result};
Expand Down

0 comments on commit 7337360

Please sign in to comment.