Skip to content

Commit 3e9fc48

Browse files
authored
Merge 2022-11 LWG Motion 7
P2703R0 C++ Standard Library Ready Issues
2 parents 7fd53ea + 890ba0b commit 3e9fc48

12 files changed

+363
-240
lines changed

source/algorithms.tex

+4-4
Original file line numberDiff line numberDiff line change
@@ -6293,7 +6293,7 @@
62936293
\effects
62946294
Equivalent to:
62956295
\begin{codeblock}
6296-
return ranges::rotate_copy(ranges::begin(r), middle, ranges::end(r), result);
6296+
return ranges::rotate_copy(ranges::begin(r), middle, ranges::end(r), std::move(result));
62976297
\end{codeblock}
62986298
\end{itemdescr}
62996299

@@ -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)