summaryrefslogtreecommitdiff
path: root/chromium/styleguide/c++/c++11.html
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/styleguide/c++/c++11.html')
-rw-r--r--chromium/styleguide/c++/c++11.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/chromium/styleguide/c++/c++11.html b/chromium/styleguide/c++/c++11.html
index e7757275e6e..9bc95a48a0e 100644
--- a/chromium/styleguide/c++/c++11.html
+++ b/chromium/styleguide/c++/c++11.html
@@ -704,6 +704,14 @@ template &lt;typename T&gt;<br/>void Function(T&amp;&amp; t) { ... }</code></td>
<td></td>
</tr>
+<tr>
+<td>Reverse Iterator Adaptor</td>
+<td><code>std::make_reverse_iterator()</code></td>
+<td>For a given iterator, deduces the type of a corresponding reverse iterator and constructs it.</td>
+<td><a href="http://en.cppreference.com/w/cpp/iterator/make_reverse_iterator">std::make_reverse_iterator</a></td>
+<td>Useful to reduce boilerplate when constructing reverse iterators. The alternative is using <code>std::reverse_iterator<T>(i)</code> where <code>T</code> is the, usually long, type of the iterator <code>i</code>. <a href="https://groups.google.com/a/chromium.org/forum/#!topic/cxx/qOE1XA0b6Dk">Discussion thread</a></td>
+</tr>
+
</tbody>
</table>