Chromium Code Reviews| Index: styleguide/c++/c++11.html |
| diff --git a/styleguide/c++/c++11.html b/styleguide/c++/c++11.html |
| index e132f6853de48402be9d4479d42fda729488fec5..3e6c4dd34704845965b58d2c9d0534037a2c020d 100644 |
| --- a/styleguide/c++/c++11.html |
| +++ b/styleguide/c++/c++11.html |
| @@ -274,6 +274,14 @@ Parameter pack</a></td> |
| </tr> |
| <tr> |
| +<td>Access to underlying <code>std::vector</code> data</td> |
|
davidben
2015/11/16 21:27:38
I felt a little silly writing all this text for on
|
| +<td><code>v.data()</code></td> |
| +<td>Returns a pointer to a <code>std::vector</code>'s underlying data, accounting for empty vectors.</td> |
| +<td><a href="http://en.cppreference.com/w/cpp/container/vector/data">std::vector::data</a></td> |
| +<td>May not be used in <code>//base</code> headers yet (<a href="https://crbug.com/555825">bug</a>). <a href="https://groups.google.com/a/chromium.org/forum/#!topic/cxx/16V7fmtbzok">Discussion thread</a>.</td> |
|
danakj
2015/11/16 21:39:48
mark@ said he'd wrap callers that this broke for c
davidben
2015/11/16 21:55:37
Done. (+mark FYI)
|
| +</tr> |
| + |
| +<tr> |
| <td>Containers containing movable types</td> |
| <td><code>vector<scoped_ptr></code></td> |
| <td>Enables containers that contain move-only types like <code>scoped_ptr</code></td> |