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 <link rel="stylesheet" href="c++11.css"> | 10 <link rel="stylesheet" href="c++11.css"> |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 <tr> | 77 <tr> |
78 <td>Standard Integers</td> | 78 <td>Standard Integers</td> |
79 <td>Typedefs within <code><stdint.h></code> | 79 <td>Typedefs within <code><stdint.h></code> |
80 and <code><inttypes></code></td> | 80 and <code><inttypes></code></td> |
81 <td>Provides fixed-size integers independent of platforms</td> | 81 <td>Provides fixed-size integers independent of platforms</td> |
82 <td><a href="http://www.cplusplus.com/reference/cstdint/"> | 82 <td><a href="http://www.cplusplus.com/reference/cstdint/"> |
83 <stdint.h> (cstdint)</a></td> | 83 <stdint.h> (cstdint)</a></td> |
84 <td>Already in common use in the codebase. Approved without discussion.</td> | 84 <td>Already in common use in the codebase. Approved without discussion.</td> |
85 </tr> | 85 </tr> |
86 | 86 |
| 87 <tr> |
| 88 <td>Null Pointer Constant</td> |
| 89 <td><code>nullptr</code></td> |
| 90 <td>Declares a type-safe null pointer</td> |
| 91 <td>TODO: documentation link</td> |
| 92 <td>Recommended for new code. |
| 93 <a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/4mi
jeJHzxLg">Discussion thread</a>. |
| 94 <a href="https://google-styleguide.googlecode.com/svn/trunk/cppguide.html#0_and_
nullptr/NULL">Google Style Guide</a>. |
| 95 Note: <code>std::nullptr_t</code> is a library feature and not available. |
| 96 </td> |
| 97 </tr> |
| 98 |
87 </tbody> | 99 </tbody> |
88 </table> | 100 </table> |
89 | 101 |
90 <h2 id="blacklist">C++11 Blacklist (Disallowed and Banned Features)</h2> | 102 <h2 id="blacklist">C++11 Blacklist (Disallowed and Banned Features)</h2> |
91 | 103 |
92 <p>This section lists features that are not allowed to be used yet. | 104 <p>This section lists features that are not allowed to be used yet. |
93 | 105 |
94 <h3 id="blacklist_banned">C++11 Banned Features</h3> | 106 <h3 id="blacklist_banned">C++11 Banned Features</h3> |
95 | 107 |
96 <p>None yet! This section will list C++11 features that are not allowed in the | 108 <p>None yet! This section will list C++11 features that are not allowed in the |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 <i>type</i> <i>var</i> = <i>value</i>;<br/> | 336 <i>type</i> <i>var</i> = <i>value</i>;<br/> |
325 C() // copy-initializes <i>var</i><br/> | 337 C() // copy-initializes <i>var</i><br/> |
326 </code> | 338 </code> |
327 <td>Allows non-static class members to be initialized at their definitions (outs
ide constructors)</td> | 339 <td>Allows non-static class members to be initialized at their definitions (outs
ide constructors)</td> |
328 <td><a href="http://en.cppreference.com/w/cpp/language/data_members"> | 340 <td><a href="http://en.cppreference.com/w/cpp/language/data_members"> |
329 Non-static data members</a></td> | 341 Non-static data members</a></td> |
330 <td></td> | 342 <td></td> |
331 </tr> | 343 </tr> |
332 | 344 |
333 <tr> | 345 <tr> |
334 <td>Null Pointer Constant</td> | |
335 <td><code>nullptr</code></td> | |
336 <td>Declares a type-safe null pointer</td> | |
337 <td>TODO: documentation link</td> | |
338 <td><a href="https://google-styleguide.googlecode.com/svn/trunk/cppguide.html#0_
and_nullptr/NULL">Google Style Guidwe</a>. | |
339 </td> | |
340 </tr> | |
341 | |
342 <tr> | |
343 <td>Overrides</td> | 346 <td>Overrides</td> |
344 <td><code>override</code></td> | 347 <td><code>override</code></td> |
345 <td>Indicates that a class or function overrides a base implementation</td> | 348 <td>Indicates that a class or function overrides a base implementation</td> |
346 <td>TODO: documentation link</td> | 349 <td>TODO: documentation link</td> |
347 <td><code>OVERRIDE</code> is already widely used in the codebase.</td> | 350 <td><code>OVERRIDE</code> is already widely used in the codebase.</td> |
348 </tr> | 351 </tr> |
349 | 352 |
350 <tr> | 353 <tr> |
351 <td>Range-Based For Loops</td> | 354 <td>Range-Based For Loops</td> |
352 <td><code>for (<i>type</i> <i>var</i> : <i>range</i>)</code></td> | 355 <td><code>for (<i>type</i> <i>var</i> : <i>range</i>)</code></td> |
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 </tr> | 945 </tr> |
943 | 946 |
944 </tbody> | 947 </tbody> |
945 </table> | 948 </table> |
946 | 949 |
947 </details> | 950 </details> |
948 | 951 |
949 </div> | 952 </div> |
950 </body> | 953 </body> |
951 </html> | 954 </html> |
OLD | NEW |