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

Unified Diff: styleguide/c++/c++11.html

Issue 866663002: c++11: Allow in-class member initialization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a link to the Google Style Guide Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/timer/timer_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: styleguide/c++/c++11.html
diff --git a/styleguide/c++/c++11.html b/styleguide/c++/c++11.html
index 6ca2eb8555a9c76aa5141af9e03cf3c891342486..d1b26808d7c27a07fb79ce09dd3a96b7e9eae665 100644
--- a/styleguide/c++/c++11.html
+++ b/styleguide/c++/c++11.html
@@ -173,6 +173,23 @@ Local types, types without linkage and unnamed types as template arguments</a></
</tr>
<tr>
+<td>Non-Static Class Member Initializers</td>
+<td>
+<code>
+class C {<br />
+ <i>type</i> <i>var</i> = <i>value</i>;<br/>
+ C() // copy-initializes <i>var</i><br/>
+</code>
+<td>Allows non-static class members to be initialized at their definitions (outside constructors)</td>
+<td><a href="http://en.cppreference.com/w/cpp/language/data_members">
+Non-static data members</a></td>
+<td><a href="https://google-styleguide.googlecode.com/svn/trunk/cppguide.html#Initialization">Google
+Style Guide</a>.
+<a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/zqB-DySA4V0">Discussion thread</a>
+</td>
+</tr>
+
+<tr>
<td>Null Pointer Constant</td>
<td><code>nullptr</code></td>
<td>Declares a type-safe null pointer</td>
@@ -434,20 +451,6 @@ std::exception</a></td>
</tr>
<tr>
-<td>Non-Static Class Member Initializers</td>
-<td>
-<code>
-class C {<br />
- <i>type</i> <i>var</i> = <i>value</i>;<br/>
- C() // copy-initializes <i>var</i><br/>
-</code>
-<td>Allows non-static class members to be initialized at their definitions (outside constructors)</td>
-<td><a href="http://en.cppreference.com/w/cpp/language/data_members">
-Non-static data members</a></td>
-<td><a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/zqB-DySA4V0">Discussion thread</a></td>
-</tr>
-
-<tr>
<td>Union Class Members</td>
<td><code>union <i>name</i> { <i>class</i> <i>var</i>}</code></td>
<td>Allows class type members</td>
« no previous file with comments | « base/timer/timer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698