Skip to content

Commit 12fb783

Browse files
burblebeetkoeppe
authored andcommitted
LWG3747 ranges::uninitialized_copy_n, ranges::uninitialized_move_n, and ranges::destroy_n should use std::move
1 parent 3a129f2 commit 12fb783

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/algorithms.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11127,7 +11127,7 @@
1112711127
\effects
1112811128
Equivalent to:
1112911129
\begin{codeblock}
11130-
auto t = uninitialized_copy(counted_iterator(ifirst, n),
11130+
auto t = uninitialized_copy(counted_iterator(std::move(ifirst), n),
1113111131
default_sentinel, ofirst, olast);
1113211132
return {std::move(t.in).base(), t.out};
1113311133
\end{codeblock}
@@ -11237,7 +11237,7 @@
1123711237
\effects
1123811238
Equivalent to:
1123911239
\begin{codeblock}
11240-
auto t = uninitialized_move(counted_iterator(ifirst, n),
11240+
auto t = uninitialized_move(counted_iterator(std::move(ifirst), n),
1124111241
default_sentinel, ofirst, olast);
1124211242
return {std::move(t.in).base(), t.out};
1124311243
\end{codeblock}
@@ -11448,7 +11448,7 @@
1144811448
\effects
1144911449
Equivalent to:
1145011450
\begin{codeblock}
11451-
return destroy(counted_iterator(first, n), default_sentinel).base();
11451+
return destroy(counted_iterator(std::move(first), n), default_sentinel).base();
1145211452
\end{codeblock}
1145311453
\end{itemdescr}
1145411454

0 commit comments

Comments
 (0)