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 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 <td>Allows compile-time inspection of the properties of types</td> | 495 <td>Allows compile-time inspection of the properties of types</td> |
496 <td><a href="http://en.cppreference.com/w/cpp/header/type_traits">Standard libra
ry header <type_traits></a></td> | 496 <td><a href="http://en.cppreference.com/w/cpp/header/type_traits">Standard libra
ry header <type_traits></a></td> |
497 <td>Note that not all type traits are available on all platforms (e.g. <code>std
::underlying_type</code> doesn't work in libstdc++ 4.6). Use judiciously. <a hre
f='https://groups.google.com/a/chromium.org/forum/#!topic/cxx/vCxo4tZNd_M'>Discu
ssion thread</a></td> | 497 <td>Note that not all type traits are available on all platforms (e.g. <code>std
::underlying_type</code> doesn't work in libstdc++ 4.6). Use judiciously. <a hre
f='https://groups.google.com/a/chromium.org/forum/#!topic/cxx/vCxo4tZNd_M'>Discu
ssion thread</a></td> |
498 </tr> | 498 </tr> |
499 | 499 |
500 <tr> | 500 <tr> |
501 <td>Tuples</td> | 501 <td>Tuples</td> |
502 <td>All C++11 features in <code><tuple></code>, e.g. <code>std::tie</code>
and <code>std::tuple</code>.</td> | 502 <td>All C++11 features in <code><tuple></code>, e.g. <code>std::tie</code>
and <code>std::tuple</code>.</td> |
503 <td>A fixed-size ordered collection of values of mixed types</td> | 503 <td>A fixed-size ordered collection of values of mixed types</td> |
504 <td><a href="http://en.cppreference.com/w/cpp/header/tuple">Standard library hea
der <tuple></a></td> | 504 <td><a href="http://en.cppreference.com/w/cpp/header/tuple">Standard library hea
der <tuple></a></td> |
505 <td>libstdc++ 4.6 has a bug where <code>std::get</code> can return an lvalue-ref
erence when it should return an rvalue-reference. <code>base::get</code> can be
used to avoid this. <a href="https://groups.google.com/a/chromium.org/forum/#!to
pic/cxx/0NnCRmMY1xY">Discussion thread</a>. <a href="https://groups.google.com/a
/chromium.org/forum/#!topic/cxx/VA7Ej2IWS2w">Another discussion thread</a></td> | 505 <td><a href="https://groups.google.com/a/chromium.org/forum/#!topic/cxx/0NnCRmMY
1xY">Discussion thread</a>. <a href="https://groups.google.com/a/chromium.org/fo
rum/#!topic/cxx/VA7Ej2IWS2w">Another discussion thread</a></td> |
506 </tr> | 506 </tr> |
507 | 507 |
508 <tr> | 508 <tr> |
509 <td>Unordered Associative Containers</td> | 509 <td>Unordered Associative Containers</td> |
510 <td><code>std::unordered_set</code>, <code>std::unordered_map</code>, <code>std:
:unordered_multiset</code>, <code>std::unordered_multimap</code></td> | 510 <td><code>std::unordered_set</code>, <code>std::unordered_map</code>, <code>std:
:unordered_multiset</code>, <code>std::unordered_multimap</code></td> |
511 <td>Allows efficient containers of key/value pairs</td> | 511 <td>Allows efficient containers of key/value pairs</td> |
512 <td><a href="http://en.cppreference.com/w/cpp/container/unordered_map">std::unor
dered_map</a>, <a href="http://en.cppreference.com/w/cpp/container/unordered_set
">std::unordered_set</a></td> | 512 <td><a href="http://en.cppreference.com/w/cpp/container/unordered_map">std::unor
dered_map</a>, <a href="http://en.cppreference.com/w/cpp/container/unordered_set
">std::unordered_set</a></td> |
513 <td>Specify custom hashers instead of specializing <code>std::hash</code> for cu
stom types. <a href="https://google.github.io/styleguide/cppguide.html#std_hash"
>Google Style Guide</a>. <a href="https://groups.google.com/a/chromium.org/forum
/#!topic/cxx/nCdjQqnouO4">Discussion thread</a></td> | 513 <td>Specify custom hashers instead of specializing <code>std::hash</code> for cu
stom types. <a href="https://google.github.io/styleguide/cppguide.html#std_hash"
>Google Style Guide</a>. <a href="https://groups.google.com/a/chromium.org/forum
/#!topic/cxx/nCdjQqnouO4">Discussion thread</a></td> |
514 </tr> | 514 </tr> |
515 | 515 |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
920 <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> | 920 <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>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> | 921 <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 </tr> | 922 </tr> |
923 | 923 |
924 </tbody> | 924 </tbody> |
925 </table> | 925 </table> |
926 | 926 |
927 </div> | 927 </div> |
928 </body> | 928 </body> |
929 </html> | 929 </html> |
OLD | NEW |