Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Unified Diff: styleguide/c++/c++11.html

Issue 1669683002: styleguide: Fix/clarify the cbegin/cend rules are for container methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cbegin: upload Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: styleguide/c++/c++11.html
diff --git a/styleguide/c++/c++11.html b/styleguide/c++/c++11.html
index 8c3cbc0426634f5be32e0a81cdbeeddda577b3ba..ef0268492b0892e961b1bc64b947401f20d416a8 100644
--- a/styleguide/c++/c++11.html
+++ b/styleguide/c++/c++11.html
@@ -807,10 +807,10 @@ the <code>&lt;complex&gt;</code> library.</td>
<tr>
<td>Constant Iterator Methods on Containers</td>
-<td><code>std::cbegin()</code> and <code>std::cend()</code></td>
+<td><code>std::vector::cbegin()</code> and <code>std::vector::cend()</code></td>
<td>Enforces iteration methods that don't change container contents</td>
-<td>TODO: documentation link</td>
-<td></td>
+<td><a href="http://en.cppreference.com/w/cpp/container/vector/begin">std::vector::cbegin<a></td>
+<td>This applies to all containers, std::vector is just an example. <a href="https://groups.google.com/a/chromium.org/d/topic/cxx/cS83F_buqLM/discussion">Discussion thread</a></td>
</tr>
<tr>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698