1 <section xmlns="http://docbook.org/ns/docbook" version="5.0"
2 xml:id="status.iso.2011" xreflabel="Status C++ 2011">
3 <?dbhtml filename="status_iso_cxx2011.html"?>
5 <info><title>C++ 2011</title>
7 <keyword>ISO C++</keyword>
8 <keyword>2011</keyword>
13 <anchor xml:id="status.iso.200x" /> <!-- preserve links to old section ID -->
14 This table is based on the table of contents of ISO/IEC
15 JTC1 SC22 WG21 Doc No: N3290 Date: 2011-04-11
16 Final Draft International Standard, Standard for Programming Language C++
20 In this implementation the <literal>-std=gnu++11</literal> or
21 <literal>-std=c++11</literal> flag must be used to enable language
23 features. See <link linkend="manual.intro.using.flags">dialect</link>
24 options. The pre-defined symbol
25 <constant>__cplusplus</constant> is used to check for the
26 presence of the required flag.
27 GCC 5.1 was the first release with non-experimental C++11 support,
28 so the API and ABI of features added in C++11 is only stable
33 This status table is based on the table of contents of ISO/IEC 14882:2011.
37 This section describes the C++11 support in
38 mainline GCC, not in any particular release.
41 <!-- Status is Yes or No, Broken/Partial-->
46 <?dbhtml bgcolor="#C8B0B0" ?>
48 <?dbhtml bgcolor="#B0B0B0" ?>
50 <table frame="all" xml:id="table.cxx11_status">
51 <title>C++ 2011 Implementation Status</title>
53 <tgroup cols="4" align="left" colsep="0" rowsep="1">
54 <colspec colname="c1"/>
55 <colspec colname="c2"/>
56 <colspec colname="c3"/>
57 <colspec colname="c4"/>
60 <entry>Section</entry>
61 <entry>Description</entry>
63 <entry>Comments</entry>
71 <emphasis>18</emphasis>
73 <entry namest="c2" nameend="c4" align="left">
74 <emphasis>Language support</emphasis>
80 <entry>General</entry>
92 <entry>Implementation properties</entry>
99 <entry>Numeric Limits</entry>
104 <entry>18.3.2.3</entry>
105 <entry>Class template <code>numeric_limits</code></entry>
110 <entry>18.3.2.4</entry>
111 <entry><code>numeric_limits</code> members</entry>
116 <?dbhtml bgcolor="#C8B0B0" ?>
117 <entry>18.3.2.5</entry>
118 <entry><code>float_round_style</code></entry>
123 <?dbhtml bgcolor="#C8B0B0" ?>
124 <entry>18.3.2.6</entry>
125 <entry><code>float_denorm_style</code></entry>
130 <entry>18.3.2.7</entry>
131 <entry><code>numeric_limits</code> specializations</entry>
137 <entry>18.3.3</entry>
138 <entry>C Library</entry>
145 <entry>Integer types</entry>
150 <entry>18.4.1</entry>
151 <entry>Header <code><cstdint></code> synopsis</entry>
156 <?dbhtml bgcolor="#B0B0B0" ?>
158 <entry>Start and termination</entry>
159 <entry>Partial</entry>
160 <entry>C library dependency for quick_exit, at_quick_exit</entry>
164 <entry>Dynamic memory management</entry>
170 <entry>Type identification</entry>
175 <entry>18.7.1</entry>
176 <entry>Class type_info</entry>
181 <entry>18.7.2</entry>
182 <entry>Class bad_cast</entry>
187 <entry>18.7.3</entry>
188 <entry>Class bad_typeid</entry>
194 <entry>Exception handling</entry>
199 <entry>18.8.1</entry>
200 <entry>Class exception</entry>
205 <entry>18.8.2</entry>
206 <entry>Class bad_exception</entry>
211 <entry>18.8.3</entry>
212 <entry>Abnormal termination</entry>
217 <entry>18.8.4</entry>
218 <entry><code>uncaught_exception</code></entry>
223 <entry>18.8.5</entry>
224 <entry>Exception Propagation</entry>
229 <entry>18.8.6</entry>
230 <entry><code>nested_exception</code></entry>
236 <entry>Initializer lists</entry>
241 <entry>18.9.1</entry>
242 <entry>Initializer list constructors</entry>
247 <entry>18.9.2</entry>
248 <entry>Initializer list access</entry>
253 <entry>18.9.3</entry>
254 <entry>Initializer list range access</entry>
260 <entry>Other runtime support</entry>
266 <emphasis>19</emphasis>
268 <entry namest="c2" nameend="c4" align="left">
269 <emphasis>Diagnostics</emphasis>
274 <entry>General</entry>
280 <entry>Exception classes</entry>
286 <entry>Assertions</entry>
292 <entry>Error numbers</entry>
298 <entry>System error support</entry>
303 <entry>19.5.1</entry>
304 <entry>Class <code>error_category</code></entry>
309 <entry>19.5.2</entry>
310 <entry>Class <code>error_code</code></entry>
315 <entry>19.5.3</entry>
316 <entry>Class <code>error_condition</code></entry>
321 <entry>19.5.4</entry>
322 <entry>Comparison operators</entry>
327 <entry>19.5.5</entry>
328 <entry>Class <code>system_error</code></entry>
334 <emphasis>20</emphasis>
336 <entry namest="c2" nameend="c4" align="left">
337 <emphasis>General utilities</emphasis>
342 <entry>General</entry>
348 <entry>Utility components</entry>
353 <entry>20.2.1</entry>
354 <entry>Operators</entry>
359 <entry>20.2.2</entry>
365 <entry>20.2.3</entry>
366 <entry>forward/move helpers</entry>
371 <entry>20.2.4</entry>
372 <entry>Function template <code>declval</code></entry>
383 <entry>20.3.1</entry>
384 <entry>In general</entry>
389 <entry>20.3.2</entry>
390 <entry>Class template <code>pair</code></entry>
395 <entry>20.3.3</entry>
396 <entry>Specialized algorithms</entry>
401 <entry>20.3.4</entry>
402 <entry>Tuple-like access to <code>pair</code></entry>
407 <entry>20.3.5</entry>
408 <entry>Piecewise construction</entry>
414 <entry>Tuples</entry>
419 <entry>20.4.1</entry>
420 <entry>In general</entry>
425 <entry>20.4.2</entry>
426 <entry>Class template <code>tuple</code></entry>
431 <entry>20.4.2.1</entry>
432 <entry>Construction</entry>
437 <entry>20.4.2.2</entry>
438 <entry>Assignment</entry>
443 <entry>20.4.2.3</entry>
449 <entry>20.4.2.4</entry>
450 <entry>Tuple creation functions</entry>
455 <entry>20.4.2.5</entry>
456 <entry>Tuple helper classes</entry>
461 <entry>20.4.2.6</entry>
462 <entry>Element access</entry>
467 <entry>20.4.2.7</entry>
468 <entry>Relational operators</entry>
473 <entry>20.4.2.8</entry>
474 <entry>Tuple traits</entry>
479 <entry>20.4.2.9</entry>
480 <entry>Tuple specialized algorithms</entry>
486 <entry>Class template <code>bitset</code></entry>
491 <entry>20.5.1</entry>
492 <entry><code>bitset</code> constructors</entry>
497 <entry>20.5.2</entry>
498 <entry><code>bitset</code> members</entry>
503 <entry>20.5.3</entry>
504 <entry><code>bitset</code> hash support</entry>
509 <entry>20.5.4</entry>
510 <entry><code>bitset</code> operators</entry>
516 <entry>Memory</entry>
521 <entry>20.6.1</entry>
522 <entry>In general</entry>
527 <entry>20.6.2</entry>
528 <entry>Header <code><memory></code> synopsis</entry>
533 <entry>20.6.3</entry>
534 <entry>Pointer traits</entry>
539 <entry>20.6.4</entry>
540 <entry>Pointer safety</entry>
545 <entry>20.6.5</entry>
551 <entry>20.6.6</entry>
552 <entry>Allocator argument tag</entry>
557 <entry>20.6.7</entry>
558 <entry><code>uses_allocator</code></entry>
563 <entry>20.6.8</entry>
564 <entry>Allocator traits</entry>
569 <entry>20.6.9</entry>
570 <entry>The default allocator</entry>
575 <entry>20.6.10</entry>
576 <entry>Raw storage iterator</entry>
581 <entry>20.6.11</entry>
582 <entry>Temporary buffers</entry>
587 <entry>20.6.12</entry>
588 <entry>Specialized algorithms</entry>
593 <entry>20.6.12.1</entry>
594 <entry><code>addressof</code></entry>
599 <entry>20.6.12.2</entry>
600 <entry><code>uninitialized_copy</code></entry>
605 <entry>20.6.12.3</entry>
606 <entry><code>uninitialized_fill</code></entry>
611 <entry>20.6.12.4</entry>
612 <entry><code>uninitialized_fill_n</code></entry>
617 <entry>20.6.13</entry>
618 <entry>C library</entry>
624 <entry>Smart pointers</entry>
629 <entry>20.7.1</entry>
630 <entry>Class template <code>unique_ptr</code></entry>
635 <entry>20.7.2</entry>
636 <entry>Shared-ownership pointers</entry>
641 <entry>20.7.2.1</entry>
642 <entry>Class <code>bad_weak_ptr</code></entry>
647 <entry>20.7.2.2</entry>
648 <entry>Class template <code>shared_ptr</code></entry>
652 <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.boost.org/libs/smart_ptr/shared_ptr.htm">boost::shared_ptr</link>.
656 <entry>20.7.2.3</entry>
657 <entry>Class template <code>weak_ptr</code></entry>
662 <entry>20.7.2.4</entry>
663 <entry>Class template <code>enable_shared_from_this</code></entry>
668 <entry>20.7.2.5</entry>
669 <entry><code>shared_ptr</code> atomic access</entry>
674 <entry>20.7.2.6</entry>
675 <entry>Smart pointer hash support</entry>
681 <entry>Function objects</entry>
686 <entry>20.8.1</entry>
687 <entry>Definitions</entry>
692 <entry>20.8.2</entry>
693 <entry>Requirements</entry>
698 <entry>20.8.3</entry>
699 <entry>Class template <code>reference_wrapper</code></entry>
704 <entry>20.8.4</entry>
705 <entry>Arithmetic operation</entry>
710 <entry>20.8.5</entry>
711 <entry>Comparisons</entry>
716 <entry>20.8.6</entry>
717 <entry>Logical operations</entry>
722 <entry>20.8.7</entry>
723 <entry>Bitwise operations</entry>
728 <entry>20.8.8</entry>
729 <entry>Negators</entry>
734 <entry>20.8.9</entry>
735 <entry>Function template <code>bind</code></entry>
740 <entry>20.8.10</entry>
741 <entry>Function template <code>mem_fn</code></entry>
746 <entry>20.8.11</entry>
747 <entry>Polymorphic function wrappers</entry>
752 <entry>20.8.11.1</entry>
753 <entry>Class <code>bad_function_call</code></entry>
758 <?dbhtml bgcolor="#B0B0B0" ?>
759 <entry>20.8.11.2</entry>
760 <entry>Class template <code>function</code></entry>
761 <entry>Partial</entry>
762 <entry>Missing allocator support</entry>
765 <entry>20.8.12</entry>
766 <entry>Class template <code>hash</code></entry>
772 <entry>Metaprogramming and type traits</entry>
777 <entry>20.9.1</entry>
778 <entry>Requirements</entry>
783 <entry>20.9.2</entry>
784 <entry>Header <code><type_traits></code> synopsis</entry>
789 <entry>20.9.3</entry>
790 <entry>Helper classes</entry>
795 <entry>20.9.4</entry>
796 <entry>Unary Type Traits</entry>
801 <entry>20.9.4.1</entry>
802 <entry>Primary type categories</entry>
807 <entry>20.9.4.2</entry>
808 <entry>Composite type traits</entry>
813 <entry>20.9.4.3</entry>
814 <entry>Type properties</entry>
819 <entry>20.9.5</entry>
820 <entry>Type property queries</entry>
825 <entry>20.9.6</entry>
826 <entry>Relationships between types</entry>
831 <entry>20.9.7</entry>
832 <entry>Transformations between types</entry>
837 <entry>20.9.7.1</entry>
838 <entry>Const-volatile modifications</entry>
843 <entry>20.9.7.2</entry>
844 <entry>Reference modifications</entry>
849 <entry>20.9.7.3</entry>
850 <entry>Sign modifications</entry>
855 <entry>20.9.7.4</entry>
856 <entry>Array modifications</entry>
861 <entry>20.9.7.5</entry>
862 <entry>Pointer modifications</entry>
867 <entry>20.9.7.6</entry>
868 <entry>Other transformations</entry>
874 <entry>Compile-time rational arithmetic</entry>
879 <entry>20.10.1</entry>
880 <entry>In general</entry>
885 <entry>20.10.2</entry>
886 <entry>Header <code><ratio></code> synopsis</entry>
891 <entry>20.10.3</entry>
892 <entry>Class template <code>ratio</code></entry>
897 <entry>20.10.4</entry>
898 <entry>Arithmetic on <code>ratio</code>s</entry>
903 <entry>20.10.5</entry>
904 <entry>Comparison of <code>ratio</code>s</entry>
909 <entry>20.10.6</entry>
910 <entry>SI types for <code>ratio</code></entry>
916 <entry>Time utilities</entry>
921 <entry>20.11.3</entry>
922 <entry>Clock requirements</entry>
927 <entry>20.11.4</entry>
928 <entry>Time-related traits</entry>
933 <entry>20.11.4.1</entry>
934 <entry><code>treat_as_floating_point</code></entry>
939 <entry>20.11.4.2</entry>
940 <entry><code>duration_values</code></entry>
945 <entry>20.11.4.3</entry>
946 <entry>Specializations of <code>common_type</code></entry>
951 <entry>20.11.5</entry>
952 <entry>Class template <code>duration</code></entry>
957 <entry>20.11.6</entry>
958 <entry>Class template <code>time_point</code></entry>
963 <entry>20.11.7</entry>
964 <entry>Clocks</entry>
969 <entry>20.11.7.1</entry>
970 <entry>Class <code>system_clock</code></entry>
975 <entry>20.11.7.2</entry>
976 <entry>Class <code>steady_clock</code></entry>
981 <entry>20.11.7.3</entry>
982 <entry>Class <code>high_resolution_clock</code></entry>
987 <entry>20.11.8</entry>
988 <entry>Date and time functions</entry>
994 <entry>Scoped allocator adaptor</entry>
999 <entry>20.12.1</entry>
1000 <entry>Header <code><scoped_allocator></code> synopsis</entry>
1005 <entry>20.12.2</entry>
1006 <entry>Scoped allocator adaptor member types</entry>
1011 <entry>20.12.3</entry>
1012 <entry>Scoped allocator adaptor constructors</entry>
1017 <entry>20.12.4</entry>
1018 <entry>Scoped allocator adaptor members</entry>
1023 <entry>20.12.5</entry>
1024 <entry>Scoped allocator operators</entry>
1029 <entry>20.13</entry>
1030 <entry>Class <code>type_index</code></entry>
1036 <emphasis>21</emphasis>
1038 <entry namest="c2" nameend="c4" align="left">
1039 <emphasis>Strings</emphasis>
1044 <entry>General</entry>
1050 <entry>Character traits</entry>
1055 <entry>21.2.1</entry>
1056 <entry>Character traits requirements</entry>
1061 <entry>21.2.2</entry>
1062 <entry>traits typedefs</entry>
1067 <entry>21.2.3</entry>
1068 <entry><code>char_traits</code> specializations</entry>
1073 <entry>21.2.3.1</entry>
1074 <entry>struct <code>char_traits<char></code></entry>
1079 <entry>21.2.3.2</entry>
1080 <entry>struct <code>char_traits<char16_t></code></entry>
1085 <entry>21.2.3.3</entry>
1086 <entry>struct <code>char_traits<char32_t></code></entry>
1091 <entry>21.2.3.4</entry>
1092 <entry>struct <code>char_traits<wchar_t></code></entry>
1098 <entry>String classes</entry>
1104 <entry>Class template <code>basic_string</code></entry>
1110 <entry>Numeric Conversions</entry>
1116 <entry>Hash support</entry>
1121 <?dbhtml bgcolor="#B0B0B0" ?>
1123 <entry>Null-terminated sequence utilities</entry>
1124 <entry>Partial</entry>
1125 <entry>C library dependency. </entry>
1129 <emphasis>22</emphasis>
1131 <entry namest="c2" nameend="c4" align="left">
1132 <emphasis>Localization</emphasis>
1137 <entry>General</entry>
1143 <entry>Header <code><locale></code> synopsis</entry>
1149 <entry>Locales</entry>
1154 <entry>22.3.1</entry>
1155 <entry>Class <code>locale</code></entry>
1160 <entry>22.3.2</entry>
1161 <entry><code>locale</code> globals</entry>
1166 <entry>22.3.3</entry>
1167 <entry>Convenience interfaces</entry>
1172 <entry>22.3.3.1</entry>
1173 <entry>Character classification</entry>
1178 <entry>22.3.3.2</entry>
1179 <entry>Conversions</entry>
1184 <entry>22.3.3.2.1</entry>
1185 <entry>Character conversions</entry>
1190 <entry>22.3.3.2.2</entry>
1191 <entry><code>string</code> conversions</entry>
1196 <entry>22.3.3.2.3</entry>
1197 <entry>Buffer conversions</entry>
1203 <entry>Standard <code>locale</code> categories</entry>
1208 <entry>22.4.1</entry>
1209 <entry>The <code>ctype</code> category</entry>
1214 <entry>22.4.2</entry>
1215 <entry>The numeric category</entry>
1220 <entry>22.4.2.1</entry>
1221 <entry><code>num_get</code></entry>
1226 <entry>22.4.2.2</entry>
1227 <entry><code>num_put</code></entry>
1232 <entry>22.4.3</entry>
1233 <entry>The numeric punctuation facet</entry>
1238 <entry>22.4.4</entry>
1239 <entry>The collate category</entry>
1244 <entry>22.4.5</entry>
1245 <entry>The time category</entry>
1250 <entry>22.4.5.1</entry>
1251 <entry>Class template <code>time_get</code></entry>
1256 <entry>22.4.5.2</entry>
1257 <entry>Class template <code>time_get_byname</code></entry>
1262 <entry>22.4.5.3</entry>
1263 <entry>Class template <code>time_put</code></entry>
1268 <entry>22.4.5.3</entry>
1269 <entry>Class template <code>time_put_byname</code></entry>
1274 <entry>22.4.6</entry>
1275 <entry>The monetary category</entry>
1280 <entry>22.4.6.1</entry>
1281 <entry>Class template <code>money_get</code></entry>
1286 <entry>22.4.6.2</entry>
1287 <entry>Class template <code>money_put</code></entry>
1292 <entry>22.4.6.3</entry>
1293 <entry>Class template <code>money_punct</code></entry>
1298 <entry>22.4.6.4</entry>
1299 <entry>Class template <code>money_punct_byname</code></entry>
1304 <entry>22.4.7</entry>
1305 <entry>The message retrieval category</entry>
1310 <entry>22.4.8</entry>
1311 <entry>Program-defined facets</entry>
1317 <entry>Standard code conversion facets</entry>
1323 <entry>C Library Locales</entry>
1329 <emphasis>23</emphasis>
1331 <entry namest="c2" nameend="c4" align="left">
1332 <emphasis>Containers</emphasis>
1337 <entry>General</entry>
1343 <entry>Container requirements</entry>
1348 <entry>23.2.1</entry>
1349 <entry>General container requirements</entry>
1354 <entry>23.2.2</entry>
1355 <entry>Container data races</entry>
1360 <entry>23.2.3</entry>
1361 <entry>Sequence containers</entry>
1366 <entry>23.2.4</entry>
1367 <entry>Associative containers</entry>
1372 <entry>23.2.5</entry>
1373 <entry>Unordered associative containers</entry>
1379 <entry>Sequence containers</entry>
1384 <entry>23.3.2</entry>
1385 <entry>Class template <code>array</code></entry>
1390 <entry>23.3.3</entry>
1391 <entry>Class template <code>deque</code></entry>
1396 <entry>23.3.4</entry>
1397 <entry>Class template <code>forward_list</code></entry>
1402 <entry>23.3.5</entry>
1403 <entry>Class template <code>list</code></entry>
1408 <entry>23.3.6</entry>
1409 <entry>Class template <code>vector</code></entry>
1414 <entry>23.3.7</entry>
1415 <entry>Class <code>vector<bool></code></entry>
1421 <entry>Associative containers</entry>
1426 <entry>23.4.4</entry>
1427 <entry>Class template <code>map</code></entry>
1432 <entry>23.4.5</entry>
1433 <entry>Class template <code>multimap</code></entry>
1438 <entry>23.4.6</entry>
1439 <entry>Class template <code>set</code></entry>
1444 <entry>23.4.7</entry>
1445 <entry>Class template <code>multiset</code></entry>
1451 <entry>Unordered associative containers</entry>
1456 <entry>23.5.4</entry>
1457 <entry>Class template <code>unordered_map</code></entry>
1462 <entry>23.5.5</entry>
1463 <entry>Class template <code>unordered_multimap</code></entry>
1468 <entry>23.5.6</entry>
1469 <entry>Class template <code>unordered_set</code></entry>
1474 <entry>23.5.7</entry>
1475 <entry>Class template <code>unordered_multiset</code></entry>
1481 <entry>Container adaptors</entry>
1486 <entry>23.6.1</entry>
1487 <entry>Class template <code>queue</code></entry>
1492 <entry>23.6.2</entry>
1493 <entry>Class template <code>priority_queue</code></entry>
1498 <entry>23.6.3</entry>
1499 <entry>Class template <code>stack</code></entry>
1505 <emphasis>24</emphasis>
1507 <entry namest="c2" nameend="c4" align="left">
1508 <emphasis>Iterators</emphasis>
1513 <entry>General</entry>
1519 <entry>Iterator requirements</entry>
1525 <entry>Header <code><iterator></code> synopsis</entry>
1531 <entry>Iterator primitives</entry>
1537 <entry>Iterator adaptors</entry>
1542 <entry>24.5.1</entry>
1543 <entry>Reverse iterators</entry>
1548 <entry>24.5.2</entry>
1549 <entry>Insert iterators</entry>
1554 <entry>24.5.3</entry>
1555 <entry>Move iterators</entry>
1561 <entry>Stream iterators</entry>
1566 <entry>24.6.1</entry>
1567 <entry>Class template <code>istream_iterator</code></entry>
1572 <entry>24.6.2</entry>
1573 <entry>Class template <code>ostream_iterator</code></entry>
1578 <entry>24.6.3</entry>
1579 <entry>Class template <code>istreambuf_iterator</code></entry>
1584 <entry>24.6.4</entry>
1585 <entry>Class template <code>ostreambuf_iterator</code></entry>
1590 <entry>24.6.5</entry>
1591 <entry>range access</entry>
1597 <emphasis>25</emphasis>
1599 <entry namest="c2" nameend="c4" align="left">
1600 <emphasis>Algorithms</emphasis>
1605 <entry>General</entry>
1611 <entry>Non-modifying sequence operations</entry>
1617 <entry>Mutating sequence operations</entry>
1623 <entry>Sorting and related operations</entry>
1629 <entry>C library algorithms</entry>
1635 <emphasis>26</emphasis>
1637 <entry namest="c2" nameend="c4" align="left">
1638 <emphasis>Numerics</emphasis>
1643 <entry>General</entry>
1649 <entry>Numeric type requirements</entry>
1655 <entry>The floating-point environment</entry>
1661 <entry>Complex numbers</entry>
1667 <entry>Random number generation</entry>
1672 <entry>26.5.1</entry>
1673 <entry>Requirements</entry>
1678 <entry>26.5.2</entry>
1679 <entry>Header <code><random></code> synopsis</entry>
1684 <entry>26.5.3</entry>
1685 <entry>Random number engine class templates</entry>
1690 <entry>26.5.3.1</entry>
1691 <entry>Class template <code>linear_congruential_engine</code></entry>
1696 <entry>26.5.3.2</entry>
1697 <entry>Class template <code>mersenne_twister_engine</code></entry>
1702 <entry>26.5.3.3</entry>
1703 <entry>Class template <code>subtract_with_carry_engine</code></entry>
1708 <entry>26.5.4</entry>
1709 <entry>Random number engine adaptor class templates</entry>
1714 <entry>26.5.4.2</entry>
1715 <entry>Class template <code>discard_block_engine</code></entry>
1720 <entry>26.5.4.3</entry>
1721 <entry>Class template <code>independent_bits_engine</code></entry>
1726 <entry>26.5.4.4</entry>
1727 <entry>Class template <code>shuffle_order_engine</code></entry>
1732 <entry>26.5.5</entry>
1733 <entry>Engines and engine adaptors with predefined parameters</entry>
1738 <entry>26.5.6</entry>
1739 <entry>Class <code>random_device</code></entry>
1744 <entry>26.5.7</entry>
1745 <entry>Utilities</entry>
1750 <entry>26.5.7.1</entry>
1751 <entry>Class <code>seed_seq</code></entry>
1756 <entry>26.5.7.2</entry>
1757 <entry>Function template <code>generate_canonical</code></entry>
1762 <entry>26.5.8</entry>
1763 <entry>Random number distribution class templates</entry>
1768 <entry>26.5.8.2</entry>
1769 <entry>Uniform distributions</entry>
1774 <entry>26.5.8.2.1</entry>
1775 <entry>Class template <code>uniform_int_distribution</code></entry>
1780 <entry>26.5.8.2.2</entry>
1781 <entry>Class template <code>uniform_real_distribution</code></entry>
1786 <entry>26.5.8.3</entry>
1787 <entry>Bernoulli distributions</entry>
1792 <entry>26.5.8.3.1</entry>
1793 <entry>Class <code>bernoulli_distribution</code></entry>
1798 <entry>26.5.8.3.2</entry>
1799 <entry>Class template <code>binomial_distribution</code></entry>
1804 <entry>26.5.8.3.3</entry>
1805 <entry>Class template <code>geometric_distribution</code></entry>
1810 <entry>26.5.8.3.4</entry>
1811 <entry>Class template <code>negative_binomial_distribution</code></entry>
1816 <entry>26.5.8.4</entry>
1817 <entry>Poisson distributions</entry>
1822 <entry>26.5.8.4.1</entry>
1823 <entry>Class template <code>poisson_distribution</code></entry>
1828 <entry>26.5.8.4.2</entry>
1829 <entry>Class template <code>exponential_distribution</code></entry>
1834 <entry>26.5.8.4.3</entry>
1835 <entry>Class template <code>gamma_distribution</code></entry>
1840 <entry>26.5.8.4.4</entry>
1841 <entry>Class template <code>weibull_distribution</code></entry>
1846 <entry>26.5.8.4.5</entry>
1847 <entry>Class template <code>extreme_value_distribution</code></entry>
1852 <entry>26.5.8.5</entry>
1853 <entry>Normal distributions</entry>
1858 <entry>26.5.8.5.1</entry>
1859 <entry>Class template <code>normal_distribution</code></entry>
1864 <entry>26.5.8.5.2</entry>
1865 <entry>Class template <code>lognormal_distribution</code></entry>
1870 <entry>26.5.8.5.3</entry>
1871 <entry>Class template <code>chi_squared_distribution</code></entry>
1876 <entry>26.5.8.5.4</entry>
1877 <entry>Class template <code>cauchy_distribution</code></entry>
1882 <entry>26.5.8.5.5</entry>
1883 <entry>Class template <code>fisher_f_distribution</code></entry>
1888 <entry>26.5.8.5.6</entry>
1889 <entry>Class template <code>student_t_distribution</code></entry>
1894 <entry>26.5.8.6</entry>
1895 <entry>Sampling distributions</entry>
1900 <entry>26.5.8.6.1</entry>
1901 <entry>Class template <code>discrete_distribution</code></entry>
1906 <entry>26.5.8.6.2</entry>
1907 <entry>Class template <code>piecewise_constant_distribution</code></entry>
1912 <entry>26.5.8.6.3</entry>
1913 <entry>Class template <code>piecewise_linear_distribution</code></entry>
1919 <entry>Numeric arrays</entry>
1924 <entry>26.6.1</entry>
1925 <entry>Header <code><valarray></code> synopsis</entry>
1930 <entry>26.6.2</entry>
1931 <entry>Class template <code>valarray</code></entry>
1936 <entry>26.6.3</entry>
1937 <entry><code>valarray</code> non-member operations</entry>
1942 <entry>26.6.4</entry>
1943 <entry>Class <code>slice</code></entry>
1948 <entry>26.6.5</entry>
1949 <entry>Class template <code>slice_array</code></entry>
1954 <entry>26.6.6</entry>
1955 <entry>The <code>gslice</code> class</entry>
1960 <entry>26.6.7</entry>
1961 <entry>Class template <code>gslice_array</code></entry>
1966 <entry>26.6.8</entry>
1967 <entry>Class template <code>mask_array</code></entry>
1972 <entry>26.6.9</entry>
1973 <entry>Class template <code>indirect_array</code></entry>
1978 <entry>26.6.10</entry>
1979 <entry><code>valarray</code> range access</entry>
1985 <entry>Generalized numeric operations</entry>
1990 <entry>26.7.1</entry>
1991 <entry>Header <code><numeric></code> synopsis</entry>
1996 <entry>26.7.2</entry>
1997 <entry>Accumulate></entry>
2002 <entry>26.7.3</entry>
2003 <entry>Inner product</entry>
2008 <entry>26.7.4</entry>
2009 <entry>Partial sum</entry>
2014 <entry>26.7.5</entry>
2015 <entry>Adjacent difference</entry>
2020 <entry>26.7.6</entry>
2027 <entry>C Library</entry>
2033 <emphasis>27</emphasis>
2035 <entry namest="c2" nameend="c4" align="left">
2036 <emphasis>Input/output library</emphasis>
2041 <entry>General</entry>
2047 <entry>Iostreams requirements</entry>
2052 <entry>27.2.1</entry>
2053 <entry>Imbue Limitations</entry>
2058 <entry>27.2.2</entry>
2059 <entry>Positioning Type Limitations</entry>
2064 <?dbhtml bgcolor="#B0B0B0" ?>
2065 <entry>27.2.3</entry>
2066 <entry>Thread safety</entry>
2067 <entry>Partial</entry>
2072 <entry>Forward declarations</entry>
2078 <entry>Standard iostream objects</entry>
2083 <entry>27.4.1</entry>
2084 <entry>Overview</entry>
2089 <entry>27.4.2</entry>
2090 <entry>Narrow stream objects</entry>
2095 <entry>27.4.3</entry>
2096 <entry>Wide stream objects</entry>
2102 <entry>Iostreams base classes</entry>
2108 <entry>Stream buffers</entry>
2114 <entry>Formatting and manipulators</entry>
2120 <entry>String-based streams</entry>
2126 <entry>File-based streams</entry>
2132 <emphasis>28</emphasis>
2134 <entry namest="c2" nameend="c4" align="left">
2135 <emphasis>Regular expressions</emphasis>
2140 <entry>General</entry>
2146 <entry>Definitions</entry>
2152 <entry>Requirements</entry>
2158 <entry>Header <code><regex></code> synopsis</entry>
2164 <entry>Namespace <code>std::regex_constants</code></entry>
2170 <entry>Class <code>regex_error</code></entry>
2175 <?dbhtml bgcolor="#B0B0B0" ?>
2177 <entry>Class template <code>regex_traits</code></entry>
2178 <entry>Partial</entry>
2179 <entry><code>transform_primary</code> is not correctly implemented</entry>
2183 <entry>Class template <code>basic_regex</code></entry>
2189 <entry>Class template <code>sub_match</code></entry>
2194 <entry>28.10</entry>
2195 <entry>Class template <code>match_results</code></entry>
2200 <entry>28.11</entry>
2201 <entry>Regular expression algorithms</entry>
2206 <entry>28.12</entry>
2207 <entry>Regular expression Iterators</entry>
2212 <entry>28.13</entry>
2213 <entry>Modified ECMAScript regular expression grammar</entry>
2219 <emphasis>29</emphasis>
2221 <entry namest="c2" nameend="c4" align="left">
2222 <emphasis>Atomic operations</emphasis>
2227 <entry>General</entry>
2233 <entry>Header <code><atomic></code> synopsis</entry>
2239 <entry>Order and consistency</entry>
2245 <entry>Lock-free property</entry>
2251 <entry>Atomic types</entry>
2257 <entry>Operations on atomic types</entry>
2263 <entry>Flag Type and operations</entry>
2269 <entry>Fences</entry>
2275 <emphasis>30</emphasis>
2277 <entry namest="c2" nameend="c4" align="left">
2278 <emphasis>Thread support</emphasis>
2283 <entry>General</entry>
2289 <entry>Requirements</entry>
2295 <entry>Threads</entry>
2300 <?dbhtml bgcolor="#B0B0B0" ?>
2301 <entry>30.3.1</entry>
2302 <entry>Class <code>thread</code></entry>
2303 <entry>Partial</entry>
2304 <entry><code>thread::id</code> comparisons not well-defined</entry>
2307 <entry>30.3.2</entry>
2308 <entry>Namespace <code>this_thread</code></entry>
2314 <entry>Mutual exclusion</entry>
2319 <entry>30.4.1</entry>
2320 <entry>Mutex requirements</entry>
2325 <entry>30.4.1.1</entry>
2326 <entry>In general</entry>
2331 <entry>30.4.1.2</entry>
2332 <entry>Mutex types</entry>
2337 <entry>30.4.1.2.1</entry>
2338 <entry>Class <code>mutex</code></entry>
2343 <entry>30.4.1.2.2</entry>
2344 <entry>Class <code>recursive_mutex</code></entry>
2349 <entry>30.4.1.3</entry>
2350 <entry>Timed mutex types</entry>
2355 <entry>30.4.1.3.1</entry>
2356 <entry>Class <code>timed_mutex</code></entry>
2361 <entry>30.4.1.3.2</entry>
2362 <entry>Class <code>recursive_timed_mutex</code></entry>
2367 <entry>30.4.2</entry>
2368 <entry>Locks</entry>
2373 <entry>30.4.2.1</entry>
2374 <entry>Class template <code>lock_guard</code></entry>
2379 <entry>30.4.2.2</entry>
2380 <entry>Class template <code>unique_lock</code></entry>
2385 <entry>30.4.3</entry>
2386 <entry>Generic locking algorithms</entry>
2391 <entry>30.4.4</entry>
2392 <entry>Call once</entry>
2397 <entry>30.4.4.1</entry>
2398 <entry>Struct <code>once_flag</code></entry>
2403 <?dbhtml bgcolor="#B0B0B0" ?>
2404 <entry>30.4.4.2</entry>
2405 <entry>Function <code>call_once</code></entry>
2407 <entry>Exception support is broken.
2408 See <link xmlns:xlink="http://www.w3.org/1999/xlink"
2409 xlink:href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66146">PR
2415 <entry>Condition variables</entry>
2420 <entry>30.5.1</entry>
2421 <entry>Class <code>condition_variable</code></entry>
2426 <entry>30.5.2</entry>
2427 <entry>Class <code>condition_variable_any</code></entry>
2433 <entry>Futures</entry>
2438 <entry>30.6.1</entry>
2439 <entry>Overview</entry>
2444 <entry>30.6.2</entry>
2445 <entry>Error handling</entry>
2450 <entry>30.6.3</entry>
2451 <entry>Class <code>future_error</code></entry>
2456 <entry>30.6.4</entry>
2457 <entry>Shared state</entry>
2462 <entry>30.6.5</entry>
2463 <entry>Class template <code>promise</code></entry>
2468 <entry>30.6.6</entry>
2469 <entry>Class template <code>future</code></entry>
2474 <entry>30.6.7</entry>
2475 <entry>Class template <code>shared_future</code></entry>
2480 <entry>30.6.8</entry>
2481 <entry>Function template <code>async</code></entry>
2486 <entry>30.6.9</entry>
2487 <entry>Class template <code>packaged_task</code></entry>
2493 <emphasis>Appendix D</emphasis>
2495 <entry namest="c2" nameend="c4" align="left">
2496 <emphasis>Compatibility features</emphasis>
2501 <entry>Increment operator with <code>bool</code> operand</entry>
2507 <entry><code>register</code> keyword</entry>
2513 <entry>Implicit declaration of copy functions</entry>
2519 <entry>Dynamic exception specifications</entry>
2525 <entry>C standard library headers</entry>
2531 <entry>Old iostreams members</entry>
2537 <entry><code>char*</code> streams</entry>
2543 <entry>Function objects</entry>
2549 <entry>Binders</entry>
2555 <entry><code>auto_ptr</code></entry>
2561 <entry>Violating exception-specifications</entry>
2570 <section xml:id="iso.2011.specific" xreflabel="Implementation Specific"><info><title>Implementation Specific Behavior</title></info>
2572 <para>For behaviour which is also specified by the 1998 and 2003 standards,
2573 see <link linkend="iso.1998.specific">C++ 1998/2003 Implementation
2574 Specific Behavior</link>. This section only documents behaviour which
2575 is new in the 2011 standard.
2579 <emphasis>17.6.5.12 [res.on.exception.handling]</emphasis>
2580 There are no implementation-defined exception classes, only standard
2581 exception classes (or classes derived from them) will be thrown.
2585 <emphasis>17.6.5.14 [value.error.codes]</emphasis>
2586 The <classname>error_category</classname> for errors originating outside
2587 the OS, and the possible error code values for each error category,
2588 should be documented here.
2592 <emphasis>18.6.2.2 [new.badlength]</emphasis>
2593 <function>what()</function> returns
2594 <literal>"std::bad_array_new_length"</literal>.
2598 <emphasis>20.6.9.1 [allocator.member]/5</emphasis>
2599 Over-aligned types are not supported by
2600 <classname>std::allocator</classname>.
2604 <emphasis>20.7.2.2.1 [util.smartptr.shared.const]</emphasis>
2605 When a <classname>shared_ptr</classname> constructor fails
2606 <classname>bad_alloc</classname> (or types derived from it) will
2607 be thrown, or when an allocator is passed to the constructor then any
2608 exceptions thrown by the allocator.
2612 <emphasis>20.7.2.0 [util.smartptr.weakptr]</emphasis>
2613 <code>what()</code> returns <literal>"bad_weak_ptr"</literal>.
2617 <emphasis>20.8.9.1.3 [func.bind.place]/1</emphasis> There are 29
2618 placeholders defined and the placeholder types are
2619 <literal>CopyAssignable</literal>.
2623 <emphasis>20.11.7.1 [time.clock.system]/3, /4</emphasis>
2624 Time point values are truncated to <code>time_t</code> values.
2625 There is no loss of precision for conversions in the other direction.
2629 <emphasis>20.15.7 [meta.trans]/2</emphasis>
2630 <classname>aligned_storage</classname> does not support extended
2635 <emphasis>21.2.3.2 [char.traits.specializations.char16_t]</emphasis>,
2636 <emphasis>21.2.3.3 [char.traits.specializations.char32_t]</emphasis>
2637 The types <classname>u16streampos</classname> and
2638 <classname>u32streampos</classname> are both synonyms for
2639 <classname>fpos<mbstate_t></classname>.
2640 The function <function>eof</function> returns <code>int_type(-1)</code>.
2641 <function>char_traits<char16_t>::to_int_type</function> will
2642 transform the "noncharacter" U+FFFF to U+FFFD (REPLACEMENT CHARACTER).
2643 This is done to ensure that <function>to_int_type</function> never
2644 returns the same value as <function>eof</function>, which is U+FFFF.
2648 <emphasis>22.3.1 [locale]</emphasis>
2649 There is one global locale for the whole program, not per-thread.
2653 <emphasis>22.4.5.1.2 [locale.time.get.virtuals]</emphasis>,
2654 <emphasis>22.4.5.3.2 [locale.time.put.virtuals]</emphasis>
2655 Additional supported formats should be documented here.
2659 <emphasis> 22.4.7.1.2 [locale.messages.virtuals]</emphasis>
2660 The mapping should be documented here.
2664 <emphasis>23.3.2.1 [array.overview]</emphasis>
2665 <classname>array<T, N>::iterator</classname> is <code>T*</code> and
2666 <classname>array<T, N>::const_iterator</classname> is
2667 <code>const T*</code>.
2671 <emphasis>23.5.4.2 [unord.map.cnstr]</emphasis>,
2672 <emphasis>23.5.5.2 [unord.multimap.cnstr]</emphasis>,
2673 <emphasis>23.5.6.2 [unord.set.cnstr]</emphasis>,
2674 <emphasis>23.5.7.2 [unord.multiset.cnstr]</emphasis>
2675 The default minimal bucket count is 0 for the default constructors, range
2676 constructors and initializer-list constructors.
2680 <emphasis>25.3.12 [alg.random.shuffle]</emphasis>
2681 The two-argument overload of <function>random_shuffle</function>
2682 uses <function>rand</function> as the source of randomness.
2686 <emphasis>26.5.5 [rand.predef]</emphasis>
2687 The type <classname>default_random_engine</classname> is a synonym for
2688 <classname>minstd_rand0</classname>.
2692 <emphasis> 26.5.6 [rand.device] </emphasis>
2693 The <code>token</code> parameter of the
2694 <classname>random_device</classname> constructor can be used to select
2695 a specific source of random bytes. The valid token values are shown
2697 The default constructor uses the token <literal>"default"</literal>.
2700 <term><literal>"default"</literal></term>
2702 Select the first available source from the other entries below.
2703 This is the only token that is always valid.
2707 <term><literal>"rand_s"</literal></term>
2709 Use the MSVCRT <function>rand_s</function> function.
2710 This token is only valid for mingw-w64 targets.
2714 <term><literal>"rdseed"</literal></term>
2715 <term><literal>"rdrand"</literal> or <literal>"rdrnd"</literal></term>
2717 Use the IA-32 <literal>RDSEED</literal> or <literal>RDRAND</literal>
2718 instruction to read from an on-chip hardware random number generator.
2719 These tokens are only valid for x86 and x86_64 targets when both
2720 the assembler and CPU support the corresponding instruction.
2724 <term><literal>"darn"</literal></term>
2726 Use the Power ISA-3.0 <literal>DARN</literal>
2727 ("Deliver A Random Number")
2728 instruction to read from an on-chip hardware random number generator.
2729 This token is only valid for 64-bit powerpc targets when both
2730 the assembler and CPU support the corresponding instruction.
2734 <term><literal>"hw"</literal></term>
2735 <term><literal>"hardware"</literal></term>
2737 Use any available CPU
2738 instruction to read from an on-chip hardware random number generator.
2739 This is equivalent to trying each of the following and using the
2740 first that is supported:
2741 <literal>"rdseed"</literal>
2742 <literal>"rdrand"</literal>
2743 <literal>"darn"</literal>
2747 <term><literal>"arc4random"</literal></term>
2748 <term><literal>"getentropy"</literal></term>
2750 Use the named C library function, if available on the target.
2754 <term><literal>"/dev/urandom"</literal></term>
2755 <term><literal>"/dev/random"</literal></term>
2757 Use the named character special file to read random bytes from.
2758 These tokens are only valid when the device files are present
2759 and readable by the current user.
2763 <term><literal>"mt19937"</literal></term>
2764 <term>seed value</term>
2766 When no source of nondeterministic random numbers is available a
2767 <classname>mersenne_twister_engine</classname> will be used.
2768 An integer seed value can be used as the token and will be converted
2769 to an <code>unsigned long</code> using <function>strtoul</function>.
2770 These tokens are only valid when no other source of random bytes
2775 An exception of type <classname>runtime_error</classname> will be
2776 thrown if a <classname>random_device</classname> object is constructed
2777 with an invalid token, or if it cannot open or read from the source
2782 <emphasis>26.5.8.1 [rand.dist.general]</emphasis>
2783 The algorithms used by the distributions should be documented here.
2787 <emphasis>26.8 [c.math]</emphasis> Whether the
2788 <function>rand</function> function introduces data races depends on
2789 the C library as the function is not provided by libstdc++.
2793 <emphasis>27.8.2.1 [stringbuf.cons]</emphasis>
2794 Whether the sequence pointers are copied by the
2795 <classname>basic_stringbuf</classname> move constructor should be
2800 <emphasis>27.9.1.2 [filebuf.cons]</emphasis>
2801 Whether the sequence pointers are copied by the
2802 <classname>basic_filebuf</classname> move constructor should be
2807 <emphasis>28.5.1 [re.synopt]</emphasis>,
2808 <emphasis> 28.5.2 [re.matchflag] </emphasis>,
2809 <emphasis> 28.5.3 [re.err] </emphasis>
2810 <code>syntax_option_type</code>, <code>match_flag_type</code>
2811 and <code>error_type</code> are unscoped enumeration types.
2815 <emphasis>28.7 [re.traits]</emphasis>
2816 The <literal>blank</literal> character class corresponds to the
2817 <code>ctype_base::blank</code> mask.
2821 <emphasis>29.4 [atomics.lockfree]</emphasis>
2822 The values of the <code>ATOMIC_xxx_LOCK_FREE</code> macros depend on
2823 the target and cannot be listed here.
2827 <emphasis>30.2.3 [thread.req.native]/1</emphasis>
2828 <classname>native_handle_type</classname> and
2829 <methodname>native_handle</methodname> are provided. The handle types
2830 are defined in terms of the Gthreads abstraction layer, although this
2831 is subject to change at any time. Any use of
2832 <classname>native_handle</classname> is inherently non-portable and
2833 not guaranteed to work between major releases of GCC.
2836 <term><classname>thread</classname></term>
2838 The native handle type is a typedef for <code>__gthread_t</code>
2839 i.e. <code>pthread_t</code> when GCC is configured with the
2840 <literal>posix</literal> thread model.
2841 The value of the native handle is undefined for a thread
2842 which is not joinable.
2846 <term><classname>mutex</classname></term>
2847 <term><classname>timed_mutex</classname></term>
2849 The native handle type is <code>__gthread_mutex_t*</code> i.e.
2850 <code>pthread_mutex_t*</code> for the <literal>posix</literal>
2855 <term><classname>recursive_mutex</classname></term>
2856 <term><classname>recursive_timed_mutex</classname></term>
2858 The native handle type is <code>__gthread_recursive_mutex_t*</code>
2859 i.e. <code>pthread_mutex_t*</code> for the <literal>posix</literal>
2864 <term><classname>condition_variable</classname></term>
2866 The native handle type is <code>__gthread_cond_t*</code> i.e.
2867 <code>pthread_cond_t*</code> for the <literal>posix</literal>
2875 <emphasis>30.6.1 [futures.overview]/2</emphasis>
2876 <code>launch</code> is a scoped enumeration type with
2877 overloaded operators to support bitmask operations. There are no
2878 additional bitmask elements defined.