diff options
author | danakj <danakj@chromium.org> | 2016-02-04 12:28:19 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-04 20:29:21 +0000 |
commit | d18d3a0518340523ba3178c8038618823d138a57 (patch) | |
tree | 12e987ae8083edcc9847fabd78c2a89dfc1835c4 /styleguide/c++/c++11.html | |
parent | c3faa5d9e87d0e746ba2ccfdbe6d886221ca47d0 (diff) | |
download | chromium_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/c++/c++11.html')
-rw-r--r-- | styleguide/c++/c++11.html | 6 |
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><complex></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> |