summaryrefslogtreecommitdiffstats
path: root/styleguide
diff options
context:
space:
mode:
authorvmpstr <vmpstr@chromium.org>2015-12-07 13:09:05 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-07 21:09:50 +0000
commitd53c32105101633b798b12d9c5c9cfac3c8d3509 (patch)
tree5fca4bdd9042c3678b7c2b6806ee5dd5cfb8d36d /styleguide
parent8cda875da0d6cacafadd9f1aa7599472913c3ea5 (diff)
downloadchromium_src-d53c32105101633b798b12d9c5c9cfac3c8d3509.zip
chromium_src-d53c32105101633b798b12d9c5c9cfac3c8d3509.tar.gz
chromium_src-d53c32105101633b798b12d9c5c9cfac3c8d3509.tar.bz2
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}
Diffstat (limited to 'styleguide')
-rw-r--r--styleguide/c++/c++11.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/styleguide/c++/c++11.html b/styleguide/c++/c++11.html
index 8b2cb4a..9c261fc 100644
--- a/styleguide/c++/c++11.html
+++ b/styleguide/c++/c++11.html
@@ -377,6 +377,14 @@ std::end</a></td>
</tr>
<tr>
+<td>Range Move</td>
+<td><code>std::move()</code></td>
+<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>
+<td><a href="http://en.cppreference.com/w/cpp/algorithm/move"><code>std::move</code> reference</a></td>
+<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>
+</tr>
+
+<tr>
<td>Type Traits</td>
<td>Class templates within <code>&lt;type_traits&gt;</code></td>
<td>Allows compile-time inspection of the properties of types</td>