Skip to content

Commit d3e367d

Browse files
burblebeetkoeppe
authored andcommitted
LWG4465 §[alg.partitions] Clarify Returns: element
Fixes NB US 162-261 (C++26 CD).
1 parent 4b0f072 commit d3e367d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

source/algorithms.tex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9965,19 +9965,19 @@
99659965
\effects
99669966
For each iterator \tcode{i} in \range{first}{first + $N$},
99679967
copies \tcode{*i} to the output range \range{out_true}{last_true}
9968-
if \tcode{$E(\tcode{*i})$} is \tcode{true}, or
9968+
if $E(\tcode{*i})$ is \tcode{true}, or
99699969
to the output range \range{out_false}{last_false} otherwise.
99709970

99719971
\pnum
99729972
\returns
9973-
Let \tcode{o1} be the iterator past the last copied element
9974-
in the output range \range{out_true}{last_true},
9975-
and \tcode{o2} be the iterator past the last copied element
9976-
in the output range \range{out_false}{last_false}.
9973+
Let $Q$ be the number of elements copied
9974+
into the output range \range{out_true}{last_true},
9975+
and $V$ be the number of elements copied
9976+
into the output range \range{out_false}{last_false}.
99779977
Returns:
99789978
\begin{itemize}
9979-
\item \tcode{\{o1, o2\}} for the overloads in namespace \tcode{std}.
9980-
\item \tcode{\{first + $N$, o1, o2\}} for the overloads in namespace \tcode{ranges}.
9979+
\item \tcode{\{out_true + $Q$, out_false + $V$\}} for the overloads in namespace \tcode{std}.
9980+
\item \tcode{\{first + $N$, out_true + $Q$, out_false + $V$\}} for the overloads in namespace \tcode{ranges}.
99819981
\end{itemize}
99829982

99839983
\pnum

0 commit comments

Comments
 (0)