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

Side by Side Diff: styleguide/c++/c++11.html

Issue 1441543002: Make vector_as_array use std::vector::data and switch a few directories. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, update //styleguide Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « crypto/signature_verifier_openssl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright 2014 The Chromium Authors. All rights reserved. 3 Copyright 2014 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 <html> 7 <html>
8 <head> 8 <head>
9 <meta charset="utf-8"> 9 <meta charset="utf-8">
10 <title>C++11 use in Chromium</title> 10 <title>C++11 use in Chromium</title>
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 267
268 <tr> 268 <tr>
269 <th style='width:240px;'>Feature or Library</th> 269 <th style='width:240px;'>Feature or Library</th>
270 <th style='width:240px;'>Snippet</th> 270 <th style='width:240px;'>Snippet</th>
271 <th style='width:240px;'>Description</th> 271 <th style='width:240px;'>Description</th>
272 <th style='width:240px;'>Documentation Link</th> 272 <th style='width:240px;'>Documentation Link</th>
273 <th style='width:240px;'>Notes</th> 273 <th style='width:240px;'>Notes</th>
274 </tr> 274 </tr>
275 275
276 <tr> 276 <tr>
277 <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
278 <td><code>v.data()</code></td>
279 <td>Returns a pointer to a <code>std::vector</code>'s underlying data, accountin g for empty vectors.</td>
280 <td><a href="http://en.cppreference.com/w/cpp/container/vector/data">std::vector ::data</a></td>
281 <td>May not be used in <code>//base</code> headers yet (<a href="https://crbug.c om/555825">bug</a>). <a href="https://groups.google.com/a/chromium.org/forum/#!t opic/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)
282 </tr>
283
284 <tr>
277 <td>Containers containing movable types</td> 285 <td>Containers containing movable types</td>
278 <td><code>vector&lt;scoped_ptr&gt;</code></td> 286 <td><code>vector&lt;scoped_ptr&gt;</code></td>
279 <td>Enables containers that contain move-only types like <code>scoped_ptr</code> </td> 287 <td>Enables containers that contain move-only types like <code>scoped_ptr</code> </td>
280 <td>TODO</td> 288 <td>TODO</td>
281 <td>Allows getting rid of <a href="http://crbug.com/554289">ScopedVector</a></td > 289 <td>Allows getting rid of <a href="http://crbug.com/554289">ScopedVector</a></td >
282 </tr> 290 </tr>
283 291
284 <tr> 292 <tr>
285 <td>Lexicographical struct comparison</td> 293 <td>Lexicographical struct comparison</td>
286 <td><code>tie(a, b, c) &lt;<br>&nbsp; tie(rhs.a, rhs.b, rhs.c)</code></td> 294 <td><code>tie(a, b, c) &lt;<br>&nbsp; tie(rhs.a, rhs.b, rhs.c)</code></td>
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
1034 C++ Style Guide</a>. However, may be useful for 1042 C++ Style Guide</a>. However, may be useful for
1035 consuming non-ASCII data.</td> 1043 consuming non-ASCII data.</td>
1036 </tr> 1044 </tr>
1037 1045
1038 </tbody> 1046 </tbody>
1039 </table> 1047 </table>
1040 1048
1041 </div> 1049 </div>
1042 </body> 1050 </body>
1043 </html> 1051 </html>
OLDNEW
« no previous file with comments | « crypto/signature_verifier_openssl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698