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

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

Issue 1431423002: Add ref-qualified member functions as undiscussed in the C++11 guide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: refqual: . 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 | « no previous file | 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 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 452
453 <tr> 453 <tr>
454 <td>Inline Namespaces</td> 454 <td>Inline Namespaces</td>
455 <td><code>inline</code></td> 455 <td><code>inline</code></td>
456 <td>Allows better versioning of namespaces</td> 456 <td>Allows better versioning of namespaces</td>
457 <td><a href="http://en.cppreference.com/w/cpp/language/namespace">Namespaces</a> </td> 457 <td><a href="http://en.cppreference.com/w/cpp/language/namespace">Namespaces</a> </td>
458 <td>Unclear how it will work with components</td> 458 <td>Unclear how it will work with components</td>
459 </tr> 459 </tr>
460 460
461 <tr> 461 <tr>
462 <td>Ref-qualified Member Functions</td>
463 <td><code>class T {<br/>&nbsp;&nbsp;void f() & {}<br/>&nbsp;&nbsp;void f() && {} <br/>};<br/>t.f(); // first<br/>T().f(); // second<br/>std::move(t).f(); // sec ond</code></td>
464 <td>Allows class member functions to only bind to |this| as an rvalue or lvalue. </td>
465 <td><a href="http://en.cppreference.com/w/cpp/language/member_functions">
466 Member functions</a></td>
467 <td>Banned in the google3 C++11 library style guide, but being considered for us e in bind/callback in google3 and the standard library.</td>
468 </tr>
469
470 <tr>
462 <td>Union Class Members</td> 471 <td>Union Class Members</td>
463 <td><code>union <i>name</i> { <i>class</i> <i>var</i>}</code></td> 472 <td><code>union <i>name</i> { <i>class</i> <i>var</i>}</code></td>
464 <td>Allows class type members</td> 473 <td>Allows class type members</td>
465 <td><a href="http://en.cppreference.com/w/cpp/language/union"> 474 <td><a href="http://en.cppreference.com/w/cpp/language/union">
466 Union declarations</a></td> 475 Union declarations</a></td>
467 <td></td> 476 <td></td>
468 </tr> 477 </tr>
469 478
470 <tr> 479 <tr>
471 <td>User-Defined Literals</td> 480 <td>User-Defined Literals</td>
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
979 </tr> 988 </tr>
980 989
981 </tbody> 990 </tbody>
982 </table> 991 </table>
983 992
984 </details> 993 </details>
985 994
986 </div> 995 </div>
987 </body> 996 </body>
988 </html> 997 </html>
OLDNEW
« 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