Skip to content

Commit d53c321

Browse files
vmpstrCommit bot
authored and
Commit bot
committed
style: Allow std::move, the std::copy counterpart.
This patch allows the algorithm std::move usage. CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel R=thakis@chromium.org Review URL: https://codereview.chromium.org/1506943002 Cr-Commit-Position: refs/heads/master@{#363579}
1 parent 8cda875 commit d53c321

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

styleguide/c++/c++11.html

+8
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,14 @@ <h2 id="whitelist"><a name="library-whitelist"></a>C++11 Allowed Library Feature
376376
<td><a href='https://groups.google.com/a/chromium.org/forum/#!topic/cxx/x_dWFxJFdbM'>Discussion thread</a></td>
377377
</tr>
378378

379+
<tr>
380+
<td>Range Move</td>
381+
<td><code>std::move()</code></td>
382+
<td>Moves contents of an iterator range to a different iterator. This is a counterpart of std::copy that applies std::move() to each element.</td>
383+
<td><a href="http://en.cppreference.com/w/cpp/algorithm/move"><code>std::move</code> reference</a></td>
384+
<td>This is allowed, but there is almost always a way to write code without using this version of std::move. Not using it usually results in cleaner, easier to read, and less confusing code. <a href='https://groups.google.com/a/chromium.org/forum/#!topic/cxx/8WzmtYrZvQ8'>Discussion thread</a></td>
385+
</tr>
386+
379387
<tr>
380388
<td>Type Traits</td>
381389
<td>Class templates within <code>&lt;type_traits&gt;</code></td>

0 commit comments

Comments
 (0)