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

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

Issue 644833002: c++11: Allow type aliases. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « 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 <link rel="stylesheet" href="c++11.css"> 10 <link rel="stylesheet" href="c++11.css">
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 </tr> 149 </tr>
150 150
151 <tr> 151 <tr>
152 <td>Variadic Templates</td> 152 <td>Variadic Templates</td>
153 <td><code>template &lt;<i>typename</i> ... <i>arg</i>&gt;</code></td> 153 <td><code>template &lt;<i>typename</i> ... <i>arg</i>&gt;</code></td>
154 <td>Allows templates that accept a variable number of arguments</td> 154 <td>Allows templates that accept a variable number of arguments</td>
155 <td>TODO: documentation link</td> 155 <td>TODO: documentation link</td>
156 <td>Usage should be rare. Use instead of .pump files. <a href="https://groups.go ogle.com/a/chromium.org/forum/#!topic/chromium-dev/6ItymeMXpMc">Discussion threa d</a></td> 156 <td>Usage should be rare. Use instead of .pump files. <a href="https://groups.go ogle.com/a/chromium.org/forum/#!topic/chromium-dev/6ItymeMXpMc">Discussion threa d</a></td>
157 </tr> 157 </tr>
158 158
159 <tr>
160 <td>Aliases</td>
161 <td><code>using <i>new_alias</i> = <i>typename</i></code></td>
162 <td>Allow parameterized typedefs</td>
163 <td><a href="http://en.cppreference.com/w/cpp/language/type_alias">Type alias (u sing syntax)</a></td>
164 <td>Use instead of typedef, unless the header needs to be compatible with C. <a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/8dOAMz gR4ao">Discussion thread</a></td>
165 </tr>
166
Avi (use Gerrit) 2014/10/10 13:30:45 Can you do a follow up patch to put this table row
davidben 2014/10/10 16:28:33 Whoops. Somehow I didn't notice that. Done: https
159 </tbody> 167 </tbody>
160 </table> 168 </table>
161 169
162 <h2 id="blacklist">C++11 Blacklist (Disallowed and Banned Features)</h2> 170 <h2 id="blacklist">C++11 Blacklist (Disallowed and Banned Features)</h2>
163 171
164 <p>This section lists features that are not allowed to be used yet. 172 <p>This section lists features that are not allowed to be used yet.
165 173
166 <h3 id="blacklist_banned">C++11 Banned Features</h3> 174 <h3 id="blacklist_banned">C++11 Banned Features</h3>
167 175
168 <p>This section will list C++11 features that are not allowed in the Chromium 176 <p>This section will list C++11 features that are not allowed in the Chromium
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 265
258 <tr> 266 <tr>
259 <th style='width:240px;'>Feature</th> 267 <th style='width:240px;'>Feature</th>
260 <th style='width:240px;'>Snippet</th> 268 <th style='width:240px;'>Snippet</th>
261 <th style='width:240px;'>Description</th> 269 <th style='width:240px;'>Description</th>
262 <th style='width:240px;'>Documentation Link</th> 270 <th style='width:240px;'>Documentation Link</th>
263 <th style='width:240px;'>Notes</th> 271 <th style='width:240px;'>Notes</th>
264 </tr> 272 </tr>
265 273
266 <tr> 274 <tr>
267 <td>Aliases</td>
268 <td><code>using <i>new_alias</i> = <i>typename</i></code></td>
269 <td>Allow parameterized typedefs</td>
270 <td><a href="http://en.cppreference.com/w/cpp/language/type_alias">Type alias (u sing syntax)</a></td>
271 <td><a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev /8dOAMzgR4ao">Discussion thread</a></td>
272 </tr>
273
274 <tr>
275 <td>Alignment Features</td> 275 <td>Alignment Features</td>
276 <td> 276 <td>
277 <code>alignas</code> specifier, 277 <code>alignas</code> specifier,
278 <code>std::alignment_of&lt;T&gt;</code>, 278 <code>std::alignment_of&lt;T&gt;</code>,
279 <code>std::aligned_union&lt;Size, ...Types&gt;</code> and 279 <code>std::aligned_union&lt;Size, ...Types&gt;</code> and
280 <code>std::max_align_t</code></td> 280 <code>std::max_align_t</code></td>
281 <td>Object alignment</td> 281 <td>Object alignment</td>
282 <td><a href="http://en.cppreference.com/w/cpp/types/alignment_of">std::alignment _of</a></td> 282 <td><a href="http://en.cppreference.com/w/cpp/types/alignment_of">std::alignment _of</a></td>
283 <td></td> 283 <td></td>
284 </tr> 284 </tr>
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 </tr> 941 </tr>
942 942
943 </tbody> 943 </tbody>
944 </table> 944 </table>
945 945
946 </details> 946 </details>
947 947
948 </div> 948 </div>
949 </body> 949 </body>
950 </html> 950 </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