Skip to content

Commit f183ffa

Browse files
jensmaurerzygoloid
authored andcommitted
[specialized.algorithms] Fold away unnecessary compound-statements.
1 parent d45e121 commit f183ffa

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

source/algorithms.tex

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10410,9 +10410,8 @@
1041010410
\effects
1041110411
Equivalent to:
1041210412
\begin{codeblock}
10413-
for (; ifirst != ilast && ofirst != olast; ++ofirst, (void)++ifirst) {
10413+
for (; ifirst != ilast && ofirst != olast; ++ofirst, (void)++ifirst)
1041410414
::new (@\placeholdernc{voidify}@(*ofirst)) remove_reference_t<iter_reference_t<O>>(*ifirst);
10415-
}
1041610415
return {std::move(ifirst), ofirst};
1041710416
\end{codeblock}
1041810417
\end{itemdescr}
@@ -10433,10 +10432,9 @@
1043310432
\effects
1043410433
Equivalent to:
1043510434
\begin{codeblock}
10436-
for ( ; n > 0; ++result, (void) ++first, --n) {
10435+
for ( ; n > 0; ++result, (void) ++first, --n)
1043710436
::new (@\placeholdernc{voidify}@(*result))
1043810437
typename iterator_traits<NoThrowForwardIterator>::value_type(*first);
10439-
}
1044010438
\end{codeblock}
1044110439

1044210440
\pnum
@@ -10519,10 +10517,9 @@
1051910517
\effects
1052010518
Equivalent to:
1052110519
\begin{codeblock}
10522-
for (; ifirst != ilast && ofirst != olast; ++ofirst, (void)++ifirst) {
10520+
for (; ifirst != ilast && ofirst != olast; ++ofirst, (void)++ifirst)
1052310521
::new (@\placeholder{voidify}@(*ofirst))
1052410522
remove_reference_t<iter_reference_t<O>>(ranges::iter_move(ifirst));
10525-
}
1052610523
return {std::move(ifirst), ofirst};
1052710524
\end{codeblock}
1052810525

@@ -10624,9 +10621,8 @@
1062410621
\effects
1062510622
Equivalent to:
1062610623
\begin{codeblock}
10627-
for (; first != last; ++first) {
10624+
for (; first != last; ++first)
1062810625
::new (@\placeholdernc{voidify}@(*first)) remove_reference_t<iter_reference_t<I>>(x);
10629-
}
1063010626
return first;
1063110627
\end{codeblock}
1063210628
\end{itemdescr}

0 commit comments

Comments
 (0)