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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 <tr> | 69 <tr> |
70 <th style='width:220px;'>Feature</th> | 70 <th style='width:220px;'>Feature</th> |
71 <th style='width:260px;'>Snippet</th> | 71 <th style='width:260px;'>Snippet</th> |
72 <th style='width:240px;'>Description</th> | 72 <th style='width:240px;'>Description</th> |
73 <th style='width:240px;'>Documentation Link</th> | 73 <th style='width:240px;'>Documentation Link</th> |
74 <th style='width:240px;'>Notes and Discussion Thread</th> | 74 <th style='width:240px;'>Notes and Discussion Thread</th> |
75 </tr> | 75 </tr> |
76 | 76 |
77 <tr> | 77 <tr> |
| 78 <td>__func__ Local Variable</td> |
| 79 <td><code>__func__</code></td> |
| 80 <td>Provides a local variable containing the name of the enclosing function</td> |
| 81 <td><a href="https://msdn.microsoft.com/en-us/library/dn919276.aspx">__func__</a
></td> |
| 82 <td>Use instead of the non-standard <code>__FUNCTION__</code>. <a href="https://
groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/ojGfcgSDzHM">Discuss
ion thread</a></td> |
| 83 </tr> |
| 84 |
| 85 <tr> |
78 <td>Aliases</td> | 86 <td>Aliases</td> |
79 <td><code>using <i>new_alias</i> = <i>typename</i></code></td> | 87 <td><code>using <i>new_alias</i> = <i>typename</i></code></td> |
80 <td>Allow parameterized typedefs</td> | 88 <td>Allow parameterized typedefs</td> |
81 <td><a href="http://en.cppreference.com/w/cpp/language/type_alias">Type alias (u
sing syntax)</a></td> | 89 <td><a href="http://en.cppreference.com/w/cpp/language/type_alias">Type alias (u
sing syntax)</a></td> |
82 <td>Use instead of typedef, unless the header needs to be compatible with C. <a
href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/8dOAMz
gR4ao">Discussion thread</a></td> | 90 <td>Use instead of typedef, unless the header needs to be compatible with C. <a
href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/8dOAMz
gR4ao">Discussion thread</a></td> |
83 </tr> | 91 </tr> |
84 | 92 |
85 <tr> | 93 <tr> |
86 <td>Angle Bracket Parsing in Templates</td> | 94 <td>Angle Bracket Parsing in Templates</td> |
87 <td><code>>></code> for <code>> ></code>, <code><::</code> for <c
ode>< ::</code></td> | 95 <td><code>>></code> for <code>> ></code>, <code><::</code> for <c
ode>< ::</code></td> |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 | 511 |
504 <tr> | 512 <tr> |
505 <td>Alignment Features</td> | 513 <td>Alignment Features</td> |
506 <td><code>alignas</code> specifier, <code>alignof</code> operator</td> | 514 <td><code>alignas</code> specifier, <code>alignof</code> operator</td> |
507 <td>Object alignment</td> | 515 <td>Object alignment</td> |
508 <td><a href="http://en.cppreference.com/w/cpp/language/alignas">alignas</a>, <a
href="http://en.cppreference.com/w/cpp/language/alignof">alignof</a></td> | 516 <td><a href="http://en.cppreference.com/w/cpp/language/alignas">alignas</a>, <a
href="http://en.cppreference.com/w/cpp/language/alignof">alignof</a></td> |
509 <td>Reevaluate now that MSVS2015 is available. <a href="https://groups.google.co
m/a/chromium.org/d/msg/cxx/rwXN02jzzq0/CpUc1ZzMBQAJ">Discussion thread</a></td> | 517 <td>Reevaluate now that MSVS2015 is available. <a href="https://groups.google.co
m/a/chromium.org/d/msg/cxx/rwXN02jzzq0/CpUc1ZzMBQAJ">Discussion thread</a></td> |
510 </tr> | 518 </tr> |
511 | 519 |
512 <tr> | 520 <tr> |
513 <td>Function Local Variable</td> | |
514 <td><code>__func__</code></td> | |
515 <td>Provides a local variable of the name of the enclosing function for logging
purposes</td> | |
516 <td><a href="http://www.informit.com/guides/content.aspx?g=cplusplus&seqNum=
338">The __func__ Predeclared Identifier is Coming to C++</a></td> | |
517 <td>Reevaluate now that MSVS2015 is available. <a href="https://groups.google.co
m/a/chromium.org/forum/#!topic/chromium-dev/ojGfcgSDzHM">Discussion thread</a></
td> | |
518 </tr> | |
519 | |
520 <tr> | |
521 <td>Inherited Constructors</td> | 521 <td>Inherited Constructors</td> |
522 <td><code>class Derived : Base {<br /> | 522 <td><code>class Derived : Base {<br /> |
523 using Base::Base;<br /> | 523 using Base::Base;<br /> |
524 };</code></td> | 524 };</code></td> |
525 <td>Allow derived classes to inherit constructors from base classes</td> | 525 <td>Allow derived classes to inherit constructors from base classes</td> |
526 <td><a href="http://en.cppreference.com/w/cpp/language/using_declaration">Using-
declaration</a></td> | 526 <td><a href="http://en.cppreference.com/w/cpp/language/using_declaration">Using-
declaration</a></td> |
527 <td>Reevaluate now that MSVS2015 is available. <a href="https://groups.google.co
m/a/chromium.org/d/msg/chromium-dev/BULzgIKZ-Ao/PLO7_GoVNvYJ">Discussion thread<
/a></td> | 527 <td>Reevaluate now that MSVS2015 is available. <a href="https://groups.google.co
m/a/chromium.org/d/msg/chromium-dev/BULzgIKZ-Ao/PLO7_GoVNvYJ">Discussion thread<
/a></td> |
528 </tr> | 528 </tr> |
529 | 529 |
530 <tr> | 530 <tr> |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
921 <td><a href="http://en.cppreference.com/w/cpp/locale/wstring_convert">std::wstri
ng_convert</a>, <a href="http://en.cppreference.com/w/cpp/locale/wbuffer_convert
">std::wbuffer_convert</a>, <a href="http://en.cppreference.com/w/cpp/locale/cod
ecvt_utf8">std::codecvt_utf8</a>, <a href="http://en.cppreference.com/w/cpp/loca
le/codecvt_utf16">std::codecvt_utf16</a>, <a href="http://en.cppreference.com/w/
cpp/locale/codecvt_utf8_utf16">std::codecvt_utf8_utf16</a></td> | 921 <td><a href="http://en.cppreference.com/w/cpp/locale/wstring_convert">std::wstri
ng_convert</a>, <a href="http://en.cppreference.com/w/cpp/locale/wbuffer_convert
">std::wbuffer_convert</a>, <a href="http://en.cppreference.com/w/cpp/locale/cod
ecvt_utf8">std::codecvt_utf8</a>, <a href="http://en.cppreference.com/w/cpp/loca
le/codecvt_utf16">std::codecvt_utf16</a>, <a href="http://en.cppreference.com/w/
cpp/locale/codecvt_utf8_utf16">std::codecvt_utf8_utf16</a></td> |
922 <td>Non-UTF-8 text is banned by the <a href="https://google.github.io/styleguide
/cppguide.html#Non-ASCII_Characters">Google Style Guide</a>. However, may be use
ful for consuming non-ASCII data.</td> | 922 <td>Non-UTF-8 text is banned by the <a href="https://google.github.io/styleguide
/cppguide.html#Non-ASCII_Characters">Google Style Guide</a>. However, may be use
ful for consuming non-ASCII data.</td> |
923 </tr> | 923 </tr> |
924 | 924 |
925 </tbody> | 925 </tbody> |
926 </table> | 926 </table> |
927 | 927 |
928 </div> | 928 </div> |
929 </body> | 929 </body> |
930 </html> | 930 </html> |
OLD | NEW |