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

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
« ipc/ipc_message_utils.h ('K') | « 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>< /td>
Nico 2016/02/09 12:23:11 Should this mention the vs2013 compiler bug and ho
tzik 2016/02/10 15:10:54 Done
482 </tr>
483
476 </tbody> 484 </tbody>
477 </table> 485 </table>
478 486
479 <h2 id="blacklist">C++11 Blacklist (Disallowed and Banned Features)</h2> 487 <h2 id="blacklist">C++11 Blacklist (Disallowed and Banned Features)</h2>
480 488
481 <p>This section lists features that are not allowed to be used yet. 489 <p>This section lists features that are not allowed to be used yet.
482 490
483 <h3 id="blacklist_banned"><a name="core-blacklist"></a>C++11 Banned Features</h3 > 491 <h3 id="blacklist_banned"><a name="core-blacklist"></a>C++11 Banned Features</h3 >
484 492
485 <p>This section lists C++11 features that are not allowed in the Chromium 493 <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> 1030 <tr>
1023 <td>Trailing Return Types</td> 1031 <td>Trailing Return Types</td>
1024 <td><code>auto <i>function declaration</i> -> <i>return_type</i></code></td> 1032 <td><code>auto <i>function declaration</i> -> <i>return_type</i></code></td>
1025 <td>Allows trailing function return value syntax</td> 1033 <td>Allows trailing function return value syntax</td>
1026 <td><a href="http://en.cppreference.com/w/cpp/language/function"> 1034 <td><a href="http://en.cppreference.com/w/cpp/language/function">
1027 Declaring functions</a></td> 1035 Declaring functions</a></td>
1028 <td><a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev /OQyYSfH9m2M">Discussion thread</a></td> 1036 <td><a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev /OQyYSfH9m2M">Discussion thread</a></td>
1029 </tr> 1037 </tr>
1030 1038
1031 <tr> 1039 <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> 1040 <td>Type-Generic Math Functions</td>
1041 <td>Functions within <code>&lt;ctgmath&gt;</code></td> 1041 <td>Functions within <code>&lt;ctgmath&gt;</code></td>
1042 <td>Provides a means to call real or complex functions 1042 <td>Provides a means to call real or complex functions
1043 based on the type of arguments</td> 1043 based on the type of arguments</td>
1044 <td><a href="http://en.cppreference.com/w/cpp/header/ctgmath"> 1044 <td><a href="http://en.cppreference.com/w/cpp/header/ctgmath">
1045 Standard library header &lt;ctgmath&gt;</a></td> 1045 Standard library header &lt;ctgmath&gt;</a></td>
1046 <td></td> 1046 <td></td>
1047 </tr> 1047 </tr>
1048 1048
1049 <tr> 1049 <tr>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 C++ Style Guide</a>. However, may be useful for 1110 C++ Style Guide</a>. However, may be useful for
1111 consuming non-ASCII data.</td> 1111 consuming non-ASCII data.</td>
1112 </tr> 1112 </tr>
1113 1113
1114 </tbody> 1114 </tbody>
1115 </table> 1115 </table>
1116 1116
1117 </div> 1117 </div>
1118 </body> 1118 </body>
1119 </html> 1119 </html>
OLDNEW
« ipc/ipc_message_utils.h ('K') | « ppapi/proxy/ppapi_message_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698