Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(366)

Side by Side Diff: styleguide/c++/c++11.html

Issue 2797133002: Replace base::get with std::get (Closed)
Patch Set: +styleguide Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/tuple_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 &lt;type_traits&gt;</a></td> 496 <td><a href="http://en.cppreference.com/w/cpp/header/type_traits">Standard libra ry header &lt;type_traits&gt;</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>&lt;tuple&gt;</code>, e.g. <code>std::tie</code> and <code>std::tuple</code>.</td> 502 <td>All C++11 features in <code>&lt;tuple&gt;</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 &lt;tuple&gt;</a></td> 504 <td><a href="http://en.cppreference.com/w/cpp/header/tuple">Standard library hea der &lt;tuple&gt;</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
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>
OLDNEW
« no previous file with comments | « base/tuple_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698