You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This also makes the language consistent for the three "allow <library>" items
and removes some more-specific entries that are subsumed by the more general
items.
BUG=none
TEST=none
Review URL: https://codereview.chromium.org/1662933002
Cr-Commit-Position: refs/heads/master@{#373418}
Note that <algorithm> contains a range-based <code>move</code> method. This is allowed, but because people may confuse it with the single-arg <code>std::move</code>, there is often a way to write code without it that is more readable. <ahref='https://groups.google.com/a/chromium.org/forum/#!topic/cxx/8WzmtYrZvQ8'>Discussion thread</a></td>
355
+
</tr>
356
+
337
357
<tr>
338
358
<td>Begin and End Non-Member Functions</td>
339
359
<td><code>std::begin()</code> and <code>std::end()</code></td>
<td>General use of <code>std::tuple</code>, and <code>std::tie</code> for unpacking or multiple assignments is still not allowed. <ahref="https://groups.google.com/a/chromium.org/d/topic/cxx/3DZ64dIMRTY/discussion">Discussion thread</a></td>
382
402
</tr>
383
403
404
+
<tr>
405
+
<td>Math functions</td>
406
+
<td>All C++11 features in <code><cmath></code>, e.g.:<br/>
<td>This is allowed, but there is almost always a way to write code without using this version of std::move. Not using it usually results in cleaner, easier to read, and less confusing code. <ahref='https://groups.google.com/a/chromium.org/forum/#!topic/cxx/8WzmtYrZvQ8'>Discussion thread</a></td>
406
-
</tr>
407
-
408
432
<tr>
409
433
<td>Type Traits</td>
410
-
<td>Class templates within <code><type_traits></code></td>
434
+
<td>All C++11 features in <code><type_traits></code> except for aligned storage (see separate item), e.g.:<br/>
<td>Note that not all type traits are available on all platforms (eg std::underlying_type doesn't work in libstdc++4.6). Use judiciously. <ahref='https://groups.google.com/a/chromium.org/forum/#!topic/cxx/vCxo4tZNd_M'>Discussion thread</a></td>
415
444
</tr>
416
445
417
-
<tr>
418
-
<td>Types, functions, and constants from <code><cmath></code></td>
419
-
<td><code>std::round()</code>, <code>std::isnan()</code>, and others</td>
<td>Anything in <code><cmath></code> is allowed. <ahref="https://groups.google.com/a/chromium.org/forum/#!topic/cxx/P-1bFBXMeUk">Discussion thread</a></td>
0 commit comments