summaryrefslogtreecommitdiffstats
path: root/styleguide
diff options
context:
space:
mode:
authordanakj <danakj@chromium.org>2016-02-04 12:28:19 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-04 20:29:21 +0000
commitd18d3a0518340523ba3178c8038618823d138a57 (patch)
tree12e987ae8083edcc9847fabd78c2a89dfc1835c4 /styleguide
parentc3faa5d9e87d0e746ba2ccfdbe6d886221ca47d0 (diff)
downloadchromium_src-d18d3a0518340523ba3178c8038618823d138a57.zip
chromium_src-d18d3a0518340523ba3178c8038618823d138a57.tar.gz
chromium_src-d18d3a0518340523ba3178c8038618823d138a57.tar.bz2
styleguide: Fix/clarify the cbegin/cend rules are for container methods
Not for the global std::cbegin/cend, which are in C++14. R=Nico, jbroman Review URL: https://codereview.chromium.org/1669683002 Cr-Commit-Position: refs/heads/master@{#373604}
Diffstat (limited to 'styleguide')
-rw-r--r--styleguide/c++/c++11.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/styleguide/c++/c++11.html b/styleguide/c++/c++11.html
index 607b081..8a6ea1d 100644
--- a/styleguide/c++/c++11.html
+++ b/styleguide/c++/c++11.html
@@ -828,10 +828,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>