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

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

Issue 1673563002: Replace base::Tuple implementation with std::tuple (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « ppapi/proxy/ppapi_message_utils.h ('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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 <td>Unordered Associative Containers</td> 466 <td>Unordered Associative Containers</td>
467 <td><code>std::unordered_set</code>, <code>std::unordered_map</code>, 467 <td><code>std::unordered_set</code>, <code>std::unordered_map</code>,
468 <code>std::unordered_multiset</code>, and <code>std::unordered_multimap</code></ td> 468 <code>std::unordered_multiset</code>, and <code>std::unordered_multimap</code></ td>
469 <td>Allows efficient containers of key/value pairs</td> 469 <td>Allows efficient containers of key/value pairs</td>
470 <td><a href="http://en.cppreference.com/w/cpp/container/unordered_map">std::unor dered_map</a> 470 <td><a href="http://en.cppreference.com/w/cpp/container/unordered_map">std::unor dered_map</a>
471 and <a href="http://en.cppreference.com/w/cpp/container/unordered_set">std::unor dered_set</a> 471 and <a href="http://en.cppreference.com/w/cpp/container/unordered_set">std::unor dered_set</a>
472 </td> 472 </td>
473 <td>Per the <a href="https://google.github.io/styleguide/cppguide.html#std_hash" >Google style guide</a>, specify custom hashers instead of specializing <code>st d::hash</code> for custom types. <a href="https://groups.google.com/a/chromium.o rg/forum/#!topic/cxx/nCdjQqnouO4">Discussion thread</a>.</td> 473 <td>Per the <a href="https://google.github.io/styleguide/cppguide.html#std_hash" >Google style guide</a>, specify custom hashers instead of specializing <code>st d::hash</code> for custom types. <a href="https://groups.google.com/a/chromium.o rg/forum/#!topic/cxx/nCdjQqnouO4">Discussion thread</a>.</td>
474 </tr> 474 </tr>
475 475
476 <tr>
477 <td>Tuples</td>
478 <td><code>std::tuple</code></td>
479 <td>A fixed-size ordered collection of values of mixed types</td>
480 <td><a href="http://en.cppreference.com/w/cpp/utility/tuple">std::tuple</a></td>
481 <td><a href="https://crbug.com/554987">Tracking bug</a> to plan moving from <cod e>base::Tuple</code> to <code>std::tuple</code>. See also <code>std::tie</code>.
482 <code>base::Tuple</code> is now an alias for <code>std::tuple</code>. In class t emplate specializations, use <code>std::tuple</code> instead of <code>base::Tupl e</code> to work around a MSVS2013 internal compiler error (Error code: C1001).
483 </td>
484 </tr>
485
476 </tbody> 486 </tbody>
477 </table> 487 </table>
478 488
479 <h2 id="blacklist">C++11 Blacklist (Disallowed and Banned Features)</h2> 489 <h2 id="blacklist">C++11 Blacklist (Disallowed and Banned Features)</h2>
480 490
481 <p>This section lists features that are not allowed to be used yet. 491 <p>This section lists features that are not allowed to be used yet.
482 492
483 <h3 id="blacklist_banned"><a name="core-blacklist"></a>C++11 Banned Features</h3 > 493 <h3 id="blacklist_banned"><a name="core-blacklist"></a>C++11 Banned Features</h3 >
484 494
485 <p>This section lists C++11 features that are not allowed in the Chromium 495 <p>This section lists C++11 features that are not allowed in the Chromium
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 <tr> 1032 <tr>
1023 <td>Trailing Return Types</td> 1033 <td>Trailing Return Types</td>
1024 <td><code>auto <i>function declaration</i> -> <i>return_type</i></code></td> 1034 <td><code>auto <i>function declaration</i> -> <i>return_type</i></code></td>
1025 <td>Allows trailing function return value syntax</td> 1035 <td>Allows trailing function return value syntax</td>
1026 <td><a href="http://en.cppreference.com/w/cpp/language/function"> 1036 <td><a href="http://en.cppreference.com/w/cpp/language/function">
1027 Declaring functions</a></td> 1037 Declaring functions</a></td>
1028 <td><a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev /OQyYSfH9m2M">Discussion thread</a></td> 1038 <td><a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev /OQyYSfH9m2M">Discussion thread</a></td>
1029 </tr> 1039 </tr>
1030 1040
1031 <tr> 1041 <tr>
1032 <td>Tuples</td>
1033 <td><code>std::tuple</code></td>
1034 <td>A fixed-size ordered collection of values of mixed types</td>
1035 <td><a href="http://en.cppreference.com/w/cpp/utility/tuple">std::tuple</a></td>
1036 <td><a href="https://crbug.com/554987">Tracking bug</a> to plan moving from <cod e>base::Tuple</code> to <code>std::tuple</code>. See also <code>std::tie</code>< /td>
1037 </tr>
1038
1039 <tr>
1040 <td>Type-Generic Math Functions</td> 1042 <td>Type-Generic Math Functions</td>
1041 <td>Functions within <code>&lt;ctgmath&gt;</code></td> 1043 <td>Functions within <code>&lt;ctgmath&gt;</code></td>
1042 <td>Provides a means to call real or complex functions 1044 <td>Provides a means to call real or complex functions
1043 based on the type of arguments</td> 1045 based on the type of arguments</td>
1044 <td><a href="http://en.cppreference.com/w/cpp/header/ctgmath"> 1046 <td><a href="http://en.cppreference.com/w/cpp/header/ctgmath">
1045 Standard library header &lt;ctgmath&gt;</a></td> 1047 Standard library header &lt;ctgmath&gt;</a></td>
1046 <td></td> 1048 <td></td>
1047 </tr> 1049 </tr>
1048 1050
1049 <tr> 1051 <tr>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 C++ Style Guide</a>. However, may be useful for 1112 C++ Style Guide</a>. However, may be useful for
1111 consuming non-ASCII data.</td> 1113 consuming non-ASCII data.</td>
1112 </tr> 1114 </tr>
1113 1115
1114 </tbody> 1116 </tbody>
1115 </table> 1117 </table>
1116 1118
1117 </div> 1119 </div>
1118 </body> 1120 </body>
1119 </html> 1121 </html>
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_message_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698