| OLD | NEW |
| 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 Loading... |
| 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/> void f() & {}<br/> 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 Loading... |
| 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> |
| OLD | NEW |