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

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

Issue 1515493003: styleguide: Make default function template arguments an allowed feature. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « no previous file | 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 <td><code><i>Function</i>(<i>arguments</i>) = default;</code></td> 124 <td><code><i>Function</i>(<i>arguments</i>) = default;</code></td>
125 <td>Instructs the compiler to generate a default version 125 <td>Instructs the compiler to generate a default version
126 of the indicated function</td> 126 of the indicated function</td>
127 <td><a href="http://stackoverflow.com/questions/823935/whats-the-point-in-defaul ting-functions-in-c11"> 127 <td><a href="http://stackoverflow.com/questions/823935/whats-the-point-in-defaul ting-functions-in-c11">
128 What's the point in defaulting functions in C++11?</a></td> 128 What's the point in defaulting functions in C++11?</a></td>
129 <td>Doesn't work for move constructors and move assignment operators in MSVC2013 . 129 <td>Doesn't work for move constructors and move assignment operators in MSVC2013 .
130 <a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/qgU 4mh_MpGA">Discussion thread</a></td> 130 <a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/qgU 4mh_MpGA">Discussion thread</a></td>
131 </tr> 131 </tr>
132 132
133 <tr> 133 <tr>
134 <td>Default Function Template Arguments</td>
135 <td><code>template &lt;typename T = <i>type</i>&gt; <br />
136 &nbsp;&nbsp;<i>type</i> <i>Function</i>(T <i>var</i>) {}</code></td>
137 <td>Allow function templates, like classes, to have default arguments</td>
138 <td><a href="http://stackoverflow.com/questions/2447458/default-template-argumen ts-for-function-templates">
139 Default Template Arguments for Function Templates</a></td>
140 <td><a href="https://groups.google.com/a/chromium.org/forum/#!topic/cxx/9KtaAsom e-o">Discussion thread</a></td>
141 </tr>
142
143 <tr>
134 <td>Delegated Constructors</td> 144 <td>Delegated Constructors</td>
135 <td><code>Class() : Class(0) {}</code><br /> 145 <td><code>Class() : Class(0) {}</code><br />
136 <code>Class(<i>type</i> <i>var</i>) : Class(<i>var</i>, 0)</code></td> 146 <code>Class(<i>type</i> <i>var</i>) : Class(<i>var</i>, 0)</code></td>
137 <td>Allow overloaded constructors to use common initialization code</td> 147 <td>Allow overloaded constructors to use common initialization code</td>
138 <td><a href="https://www.ibm.com/developerworks/community/blogs/5894415f-be62-4b c0-81c5-3956e82276f3/entry/introduction_to_the_c_11_feature_delegating_construct ors?lang=en"> 148 <td><a href="https://www.ibm.com/developerworks/community/blogs/5894415f-be62-4b c0-81c5-3956e82276f3/entry/introduction_to_the_c_11_feature_delegating_construct ors?lang=en">
139 Introduction to the C++11 feature: delegating constructors</a></td> 149 Introduction to the C++11 feature: delegating constructors</a></td>
140 <td><a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev /0zVA8Ctx3Xo">Discussion thread</a></td> 150 <td><a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev /0zVA8Ctx3Xo">Discussion thread</a></td>
141 </tr> 151 </tr>
142 152
143 <tr> 153 <tr>
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 <td>Attributes</td> 617 <td>Attributes</td>
608 <td><code>[[<i>attribute_name</i>]]</code></td> 618 <td><code>[[<i>attribute_name</i>]]</code></td>
609 <td>Attaches properties to declarations that 619 <td>Attaches properties to declarations that
610 specific compiler implementations may use.</td> 620 specific compiler implementations may use.</td>
611 <td><a href="http://www.codesynthesis.com/~boris/blog/2012/04/18/cxx11-generaliz ed-attributes/"> 621 <td><a href="http://www.codesynthesis.com/~boris/blog/2012/04/18/cxx11-generaliz ed-attributes/">
612 C++11 generalized attributes</a></td> 622 C++11 generalized attributes</a></td>
613 <td></td> 623 <td></td>
614 </tr> 624 </tr>
615 625
616 <tr> 626 <tr>
617 <td>Default Function Template Arguments</td>
618 <td><code>template &lt;typename T = <i>type</i>&gt; <br />
619 &nbsp;&nbsp;<i>type</i> <i>Function</i>(T <i>var</i>) {}</code></td>
620 <td>Allow function templates, like classes, to have default arguments</td>
621 <td><a href="http://stackoverflow.com/questions/2447458/default-template-argumen ts-for-function-templates">
622 Default Template Arguments for Function Templates</a></td>
623 <td></td>
624 </tr>
625
626 <tr>
627 <td>Exception Features</td> 627 <td>Exception Features</td>
628 <td><code>noexcept</code>, <code>exception_ptr</code>, 628 <td><code>noexcept</code>, <code>exception_ptr</code>,
629 <code>current_exception()</code>, <code>rethrow_exception</code>, 629 <code>current_exception()</code>, <code>rethrow_exception</code>,
630 and <code>nested_exception</code></td> 630 and <code>nested_exception</code></td>
631 <td>Enhancements to exception throwing and handling</td> 631 <td>Enhancements to exception throwing and handling</td>
632 <td><a href="http://en.cppreference.com/w/cpp/error/exception"> 632 <td><a href="http://en.cppreference.com/w/cpp/error/exception">
633 std::exception</a></td> 633 std::exception</a></td>
634 <td>Exceptions are banned by the 634 <td>Exceptions are banned by the
635 <a href="https://google.github.io/styleguide/cppguide.html#Exceptions"> C++ Styl e Guide</a>. <a href="https://groups.google.com/a/chromium.org/forum/#!topic/chr omium-dev/8i4tMqNpHhg">Discussion thread</a></td> 635 <a href="https://google.github.io/styleguide/cppguide.html#Exceptions"> C++ Styl e Guide</a>. <a href="https://groups.google.com/a/chromium.org/forum/#!topic/chr omium-dev/8i4tMqNpHhg">Discussion thread</a></td>
636 </tr> 636 </tr>
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
1089 C++ Style Guide</a>. However, may be useful for 1089 C++ Style Guide</a>. However, may be useful for
1090 consuming non-ASCII data.</td> 1090 consuming non-ASCII data.</td>
1091 </tr> 1091 </tr>
1092 1092
1093 </tbody> 1093 </tbody>
1094 </table> 1094 </table>
1095 1095
1096 </div> 1096 </div>
1097 </body> 1097 </body>
1098 </html> 1098 </html>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698