| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 <tr> | 166 <tr> |
| 167 <td>Local Types as Template Arguments</td> | 167 <td>Local Types as Template Arguments</td> |
| 168 <td></td> | 168 <td></td> |
| 169 <td>Allows local and unnamed types as template arguments</td> | 169 <td>Allows local and unnamed types as template arguments</td> |
| 170 <td><a href="http://stackoverflow.com/questions/742607/using-local-classes-with-
stl-algorithms"> | 170 <td><a href="http://stackoverflow.com/questions/742607/using-local-classes-with-
stl-algorithms"> |
| 171 Local types, types without linkage and unnamed types as template arguments</a></
td> | 171 Local types, types without linkage and unnamed types as template arguments</a></
td> |
| 172 <td>Usage should be rare. Approved without discussion.</td> | 172 <td>Usage should be rare. Approved without discussion.</td> |
| 173 </tr> | 173 </tr> |
| 174 | 174 |
| 175 <tr> | 175 <tr> |
| 176 <td>Non-Static Class Member Initializers</td> |
| 177 <td> |
| 178 <code> |
| 179 class C {<br /> |
| 180 <i>type</i> <i>var</i> = <i>value</i>;<br/> |
| 181 C() // copy-initializes <i>var</i><br/> |
| 182 </code> |
| 183 <td>Allows non-static class members to be initialized at their definitions (outs
ide constructors)</td> |
| 184 <td><a href="http://en.cppreference.com/w/cpp/language/data_members"> |
| 185 Non-static data members</a></td> |
| 186 <td><a href="https://google-styleguide.googlecode.com/svn/trunk/cppguide.html#In
itialization">Google |
| 187 Style Guide</a>. |
| 188 <a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/zqB
-DySA4V0">Discussion thread</a> |
| 189 </td> |
| 190 </tr> |
| 191 |
| 192 <tr> |
| 176 <td>Null Pointer Constant</td> | 193 <td>Null Pointer Constant</td> |
| 177 <td><code>nullptr</code></td> | 194 <td><code>nullptr</code></td> |
| 178 <td>Declares a type-safe null pointer</td> | 195 <td>Declares a type-safe null pointer</td> |
| 179 <td>TODO: documentation link</td> | 196 <td>TODO: documentation link</td> |
| 180 <td>Recommended for new code. | 197 <td>Recommended for new code. |
| 181 <a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/4mi
jeJHzxLg">Discussion thread</a>. | 198 <a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/4mi
jeJHzxLg">Discussion thread</a>. |
| 182 <a href="https://google-styleguide.googlecode.com/svn/trunk/cppguide.html#0_and_
nullptr/NULL">Google Style Guide</a>. | 199 <a href="https://google-styleguide.googlecode.com/svn/trunk/cppguide.html#0_and_
nullptr/NULL">Google Style Guide</a>. |
| 183 Note: <code>std::nullptr_t</code> is a library feature and not available. | 200 Note: <code>std::nullptr_t</code> is a library feature and not available. |
| 184 </td> | 201 </td> |
| 185 </tr> | 202 </tr> |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 | 444 |
| 428 <tr> | 445 <tr> |
| 429 <td>Inline Namespaces</td> | 446 <td>Inline Namespaces</td> |
| 430 <td><code>inline</code></td> | 447 <td><code>inline</code></td> |
| 431 <td>Allows better versioning of namespaces</td> | 448 <td>Allows better versioning of namespaces</td> |
| 432 <td><a href="http://en.cppreference.com/w/cpp/language/namespace">Namespaces</a>
</td> | 449 <td><a href="http://en.cppreference.com/w/cpp/language/namespace">Namespaces</a>
</td> |
| 433 <td>Unclear how it will work with components</td> | 450 <td>Unclear how it will work with components</td> |
| 434 </tr> | 451 </tr> |
| 435 | 452 |
| 436 <tr> | 453 <tr> |
| 437 <td>Non-Static Class Member Initializers</td> | |
| 438 <td> | |
| 439 <code> | |
| 440 class C {<br /> | |
| 441 <i>type</i> <i>var</i> = <i>value</i>;<br/> | |
| 442 C() // copy-initializes <i>var</i><br/> | |
| 443 </code> | |
| 444 <td>Allows non-static class members to be initialized at their definitions (outs
ide constructors)</td> | |
| 445 <td><a href="http://en.cppreference.com/w/cpp/language/data_members"> | |
| 446 Non-static data members</a></td> | |
| 447 <td><a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev
/zqB-DySA4V0">Discussion thread</a></td> | |
| 448 </tr> | |
| 449 | |
| 450 <tr> | |
| 451 <td>Union Class Members</td> | 454 <td>Union Class Members</td> |
| 452 <td><code>union <i>name</i> { <i>class</i> <i>var</i>}</code></td> | 455 <td><code>union <i>name</i> { <i>class</i> <i>var</i>}</code></td> |
| 453 <td>Allows class type members</td> | 456 <td>Allows class type members</td> |
| 454 <td><a href="http://en.cppreference.com/w/cpp/language/union"> | 457 <td><a href="http://en.cppreference.com/w/cpp/language/union"> |
| 455 Union declarations</a></td> | 458 Union declarations</a></td> |
| 456 <td></td> | 459 <td></td> |
| 457 </tr> | 460 </tr> |
| 458 | 461 |
| 459 <tr> | 462 <tr> |
| 460 <td>User-Defined Literals</td> | 463 <td>User-Defined Literals</td> |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 967 </tr> | 970 </tr> |
| 968 | 971 |
| 969 </tbody> | 972 </tbody> |
| 970 </table> | 973 </table> |
| 971 | 974 |
| 972 </details> | 975 </details> |
| 973 | 976 |
| 974 </div> | 977 </div> |
| 975 </body> | 978 </body> |
| 976 </html> | 979 </html> |
| OLD | NEW |