Skip to content

Commit fcdc338

Browse files
vmpstrCommit bot
authored and
Commit bot
committed
styleguide: Make default function template arguments an allowed feature.
This patch moves default function template arguments from being "to be discussed" to being allowed. R=thakis@chromium.org Review URL: https://codereview.chromium.org/1515493003 Cr-Commit-Position: refs/heads/master@{#364132}
1 parent 3e86f04 commit fcdc338

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

styleguide/c++/c++11.html

+10-10
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,16 @@ <h2 id="whitelist"><a name="core-whitelist"></a>C++11 Allowed Features</h2>
130130
<a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/qgU4mh_MpGA">Discussion thread</a></td>
131131
</tr>
132132

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-arguments-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/9KtaAsome-o">Discussion thread</a></td>
141+
</tr>
142+
133143
<tr>
134144
<td>Delegated Constructors</td>
135145
<td><code>Class() : Class(0) {}</code><br />
@@ -613,16 +623,6 @@ <h3 id="blacklist_review"><a name="core-review"></a>C++11 Features To Be Discuss
613623
<td></td>
614624
</tr>
615625

616-
<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-arguments-for-function-templates">
622-
Default Template Arguments for Function Templates</a></td>
623-
<td></td>
624-
</tr>
625-
626626
<tr>
627627
<td>Exception Features</td>
628628
<td><code>noexcept</code>, <code>exception_ptr</code>,

0 commit comments

Comments
 (0)