| 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 | 291 |
| 292 <tr> | 292 <tr> |
| 293 <td>Access to underlying <code>std::vector</code> data</td> | 293 <td>Access to underlying <code>std::vector</code> data</td> |
| 294 <td><code>v.data()</code></td> | 294 <td><code>v.data()</code></td> |
| 295 <td>Returns a pointer to a <code>std::vector</code>'s underlying data, accountin
g for empty vectors.</td> | 295 <td>Returns a pointer to a <code>std::vector</code>'s underlying data, accountin
g for empty vectors.</td> |
| 296 <td><a href="http://en.cppreference.com/w/cpp/container/vector/data">std::vector
::data</a></td> | 296 <td><a href="http://en.cppreference.com/w/cpp/container/vector/data">std::vector
::data</a></td> |
| 297 <td><a href="https://groups.google.com/a/chromium.org/forum/#!topic/cxx/16V7fmtb
zok">Discussion thread</a>.</td> | 297 <td><a href="https://groups.google.com/a/chromium.org/forum/#!topic/cxx/16V7fmtb
zok">Discussion thread</a>.</td> |
| 298 </tr> | 298 </tr> |
| 299 | 299 |
| 300 <tr> | 300 <tr> |
| 301 <td>Begin and End Non-Member Functions</td> |
| 302 <td><code>std::begin()</code> and <code>std::end()</code></td> |
| 303 <td>Allows use of free functions on any container, including |
| 304 fixed-size arrays</td> |
| 305 <td><a href="http://en.cppreference.com/w/cpp/iterator/begin"> |
| 306 std::begin</a> and |
| 307 <a href="http://en.cppreference.com/w/cpp/iterator/end"> |
| 308 std::end</a></td> |
| 309 <td>Useful for fixed-size arrays. <a href="https://groups.google.com/a/chromium.
org/d/topic/cxx/5iFNE8P5qT4/discussion">Discussion thread</a></td> |
| 310 </tr> |
| 311 |
| 312 <tr> |
| 301 <td>Containers containing movable types</td> | 313 <td>Containers containing movable types</td> |
| 302 <td><code>vector<scoped_ptr></code></td> | 314 <td><code>vector<scoped_ptr></code></td> |
| 303 <td>Enables containers that contain move-only types like <code>scoped_ptr</code>
</td> | 315 <td>Enables containers that contain move-only types like <code>scoped_ptr</code>
</td> |
| 304 <td>TODO</td> | 316 <td>TODO</td> |
| 305 <td>Allows getting rid of <a href="http://crbug.com/554289">ScopedVector</a></td
> | 317 <td>Allows getting rid of <a href="http://crbug.com/554289">ScopedVector</a></td
> |
| 306 </tr> | 318 </tr> |
| 307 | 319 |
| 308 <tr> | 320 <tr> |
| 309 <td>Lexicographical struct comparison</td> | 321 <td>Lexicographical struct comparison</td> |
| 310 <td><code>tie(a, b, c) <<br> tie(rhs.a, rhs.b, rhs.c)</code></td> | 322 <td><code>tie(a, b, c) <<br> tie(rhs.a, rhs.b, rhs.c)</code></td> |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 <tr> | 687 <tr> |
| 676 <td>Arrays</td> | 688 <td>Arrays</td> |
| 677 <td><code>std::array</code></td> | 689 <td><code>std::array</code></td> |
| 678 <td>A fixed-size replacement for built-in arrays, with STL support</td> | 690 <td>A fixed-size replacement for built-in arrays, with STL support</td> |
| 679 <td><a href="http://en.cppreference.com/w/cpp/container/array"> | 691 <td><a href="http://en.cppreference.com/w/cpp/container/array"> |
| 680 std::array</a></td> | 692 std::array</a></td> |
| 681 <td></td> | 693 <td></td> |
| 682 </tr> | 694 </tr> |
| 683 | 695 |
| 684 <tr> | 696 <tr> |
| 685 <td>Begin and End Non-Member Functions</td> | |
| 686 <td><code>std::begin()</code> and <code>std::end()</code></td> | |
| 687 <td>Allows use of free functions on any container, including | |
| 688 built-in arrays</td> | |
| 689 <td><a href="http://en.cppreference.com/w/cpp/iterator/begin"> | |
| 690 std::begin</a> and | |
| 691 <a href="http://en.cppreference.com/w/cpp/iterator/end"> | |
| 692 std::end</a></td> | |
| 693 <td>Useful for built-in arrays.</td> | |
| 694 </tr> | |
| 695 | |
| 696 <tr> | |
| 697 <td>Bind Operations</td> | 697 <td>Bind Operations</td> |
| 698 <td><code>std::bind(<i>function</i>, <i>args</i>, ...)</code></td> | 698 <td><code>std::bind(<i>function</i>, <i>args</i>, ...)</code></td> |
| 699 <td>Declares a function object bound to certain arguments</td> | 699 <td>Declares a function object bound to certain arguments</td> |
| 700 <td>TODO: documentation link</td> | 700 <td>TODO: documentation link</td> |
| 701 <td></td> | 701 <td></td> |
| 702 </tr> | 702 </tr> |
| 703 | 703 |
| 704 <tr> | 704 <tr> |
| 705 <td>C Floating-Point Environment</td> | 705 <td>C Floating-Point Environment</td> |
| 706 <td><code><cfenv></code>, <code><fenv.h></code></td> | 706 <td><code><cfenv></code>, <code><fenv.h></code></td> |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1059 C++ Style Guide</a>. However, may be useful for | 1059 C++ Style Guide</a>. However, may be useful for |
| 1060 consuming non-ASCII data.</td> | 1060 consuming non-ASCII data.</td> |
| 1061 </tr> | 1061 </tr> |
| 1062 | 1062 |
| 1063 </tbody> | 1063 </tbody> |
| 1064 </table> | 1064 </table> |
| 1065 | 1065 |
| 1066 </div> | 1066 </div> |
| 1067 </body> | 1067 </body> |
| 1068 </html> | 1068 </html> |
| OLD | NEW |