1 <sect2 id="status.iso.1998" xreflabel="ISO C++ 1998">
2 <?dbhtml filename="status_iso_cxx1998.html"?>
15 <title>C++ 1998/2003</title>
17 <sect3 id="iso.1998.status" xreflabel="Implementation Status">
18 <title>Implementation Status</title>
21 This status table is based on the table of contents of ISO/IEC 14882:2003.
25 This page describes the C++0x support in mainline GCC SVN, not in any
29 <!-- Status is Yes or No, Broken/Partial-->
34 <?dbhtml bgcolor="#C8B0B0" ?>
36 <?dbhtml bgcolor="#B0B0B0" ?>
39 <title>C++ 1998/2003 Implementation Status</title>
40 <tgroup cols='4' align='left' colsep='0' rowsep='1'>
41 <colspec colname='c1'></colspec>
42 <colspec colname='c2'></colspec>
43 <colspec colname='c3'></colspec>
44 <colspec colname='c4'></colspec>
47 <entry>Section</entry>
48 <entry>Description</entry>
50 <entry>Comments</entry>
57 <emphasis>18</emphasis>
59 <entry namest="c2" nameend="c4" align="left">
60 <emphasis>Language support</emphasis>
72 <entry>Implementation properties</entry>
78 <entry>Numeric Limits</entry>
83 <entry>18.2.1.1</entry>
84 <entry>Class template <code>numeric_limits</code></entry>
89 <entry>18.2.1.2</entry>
90 <entry><code>numeric_limits</code> members</entry>
94 <entry>18.2.1.3</entry>
95 <entry><code>float_round_style</code></entry>
99 <entry>18.2.1.4</entry>
100 <entry><code>float_denorm_style</code></entry>
104 <entry>18.2.1.5</entry>
105 <entry><code>numeric_limits</code> specializations</entry>
110 <entry>18.2.2</entry>
111 <entry>C Library</entry>
117 <entry>Start and termination</entry>
123 <entry>Dynamic memory management</entry>
129 <entry>Type identification</entry>
134 <entry>18.5.1</entry>
135 <entry>Class type_info</entry>
140 <entry>18.5.2</entry>
141 <entry>Class bad_cast</entry>
146 <entry>18.5.3</entry>
147 <entry>Class bad_typeid</entry>
153 <entry>Exception handling</entry>
158 <entry>18.6.1</entry>
159 <entry>Class exception</entry>
164 <entry>18.6.2</entry>
165 <entry>Violation exception-specifications</entry>
170 <entry>18.6.3</entry>
171 <entry>Abnormal termination</entry>
176 <entry>18.6.4</entry>
177 <entry><code>uncaught_exception</code></entry>
183 <entry>Other runtime support</entry>
189 <emphasis>19</emphasis>
191 <entry namest="c2" nameend="c4" align="left">
192 <emphasis>Diagnostics</emphasis>
197 <entry>Exception classes</entry>
203 <entry>Assertions</entry>
209 <entry>Error numbers</entry>
215 <emphasis>20</emphasis>
217 <entry namest="c2" nameend="c4" align="left">
218 <emphasis>General utilities</emphasis>
223 <entry>Requirements</entry>
229 <entry>Utility components</entry>
234 <entry>20.2.1</entry>
235 <entry>Operators</entry>
240 <entry>20.2.2</entry>
241 <entry><code>pair</code></entry>
247 <entry>Function objects</entry>
252 <entry>20.3.1</entry>
258 <entry>20.3.2</entry>
259 <entry>Arithmetic operation</entry>
264 <entry>20.3.3</entry>
265 <entry>Comparisons</entry>
270 <entry>20.3.4</entry>
271 <entry>Logical operations</entry>
276 <entry>20.3.5</entry>
277 <entry>Negators</entry>
282 <entry>20.3.6</entry>
283 <entry>Binders</entry>
288 <entry>20.3.7</entry>
289 <entry>Adaptors for pointers to functions</entry>
294 <entry>20.3.8</entry>
295 <entry>Adaptors for pointers to members</entry>
301 <entry>Memory</entry>
306 <entry>20.4.1</entry>
307 <entry>The default allocator</entry>
312 <entry>20.4.2</entry>
313 <entry>Raw storage iterator</entry>
318 <entry>20.4.3</entry>
319 <entry>Temporary buffers</entry>
324 <entry>20.4.4</entry>
325 <entry>Specialized algorithms</entry>
330 <entry>20.4.4.1</entry>
331 <entry><code>uninitialized_copy</code></entry>
336 <entry>20.4.4.2</entry>
337 <entry><code>uninitialized_fill</code></entry>
342 <entry>20.4.4.3</entry>
343 <entry><code>uninitialized_fill_n</code></entry>
348 <entry>20.4.5</entry>
349 <entry>Class template <code>auto_ptr</code></entry>
354 <entry>20.4.6</entry>
355 <entry>C library</entry>
361 <emphasis>21</emphasis>
363 <entry namest="c2" nameend="c4" align="left">
364 <emphasis>Strings</emphasis>
369 <entry>Character traits</entry>
374 <entry>21.1.1</entry>
375 <entry>Character traits requirements</entry>
380 <entry>21.1.2</entry>
381 <entry>traits typedef</entry>
386 <entry>21.1.3</entry>
387 <entry><code>char_traits</code> specializations</entry>
392 <entry>21.1.3.1</entry>
393 <entry>struct <code>char_traits<char></code></entry>
398 <entry>21.1.3.2</entry>
399 <entry>struct <code>char_traits<wchar_t></code></entry>
405 <entry>String classes</entry>
411 <entry>Class template <code>basic_string</code></entry>
417 <entry>Null-terminated sequence utilities</entry>
419 <entry>C library dependency</entry>
423 <emphasis>22</emphasis>
425 <entry namest="c2" nameend="c4" align="left">
426 <emphasis>Localization</emphasis>
431 <entry>Locales</entry>
436 <entry>22.1.1</entry>
437 <entry>Class <code>locale</code></entry>
442 <entry>22.1.2</entry>
443 <entry><code>locale</code> globals</entry>
448 <entry>22.1.3</entry>
449 <entry>Convenience interfaces</entry>
454 <entry>22.1.3.1</entry>
455 <entry>Character classification</entry>
460 <entry>22.1.3.2</entry>
461 <entry>Character conversions</entry>
467 <entry>Standard locale categories</entry>
472 <entry>22.2.1</entry>
473 <entry><code>ctype</code></entry>
478 <entry>22.2.2</entry>
479 <entry>Numeric</entry>
484 <entry>22.2.2.1</entry>
485 <entry><code>num_get</code></entry>
490 <entry>22.2.2.2</entry>
491 <entry><code>num_put</code></entry>
496 <entry>22.2.3</entry>
497 <entry><code>num_punct</code></entry>
502 <entry>22.2.4</entry>
503 <entry><code>collate</code></entry>
508 <entry>22.2.5</entry>
514 <entry>22.2.5.1</entry>
515 <entry><code>time_get</code></entry>
520 <entry>22.2.5.2</entry>
521 <entry><code>time_get_byname</code></entry>
526 <entry>22.2.5.3</entry>
527 <entry><code>time_put</code></entry>
532 <entry>22.2.5.3</entry>
533 <entry><code>time_put_byname</code></entry>
538 <entry>22.2.6</entry>
539 <entry>Monetary</entry>
544 <entry>22.2.6.1</entry>
545 <entry><code>money_get</code></entry>
550 <entry>22.2.6.2</entry>
551 <entry><code>money_put</code></entry>
556 <entry>22.2.6.3</entry>
557 <entry><code>money_punct</code></entry>
562 <entry>22.2.6.4</entry>
563 <entry><code>money_punct_byname</code></entry>
568 <entry>22.2.7</entry>
569 <entry><code>messages</code></entry>
574 <entry>22.2.8</entry>
575 <entry>Program-defined facets</entry>
581 <entry>C Library Locales</entry>
587 <emphasis>23</emphasis>
589 <entry namest="c2" nameend="c4" align="left">
590 <emphasis>Containers</emphasis>
595 <entry>Container requirements</entry>
601 <entry>Sequence containers</entry>
606 <entry>23.2.1</entry>
607 <entry>Class template <code>deque</code></entry>
612 <entry>23.2.2</entry>
613 <entry>Class template <code>list</code></entry>
618 <entry>23.2.3</entry>
619 <entry>Adaptors</entry>
624 <entry>23.2.3.1</entry>
625 <entry>Class template <code>queue</code></entry>
630 <entry>23.2.3.2</entry>
631 <entry>Class template <code>priority_queue</code></entry>
636 <entry>23.2.3.3</entry>
637 <entry>Class template <code>stack</code></entry>
642 <entry>23.2.4</entry>
643 <entry>Class template <code>vector</code></entry>
648 <entry>23.2.5</entry>
649 <entry>Class <code>vector<bool></code></entry>
655 <entry>Associative containers</entry>
660 <entry>23.3.1</entry>
661 <entry>Class template <code>map</code></entry>
666 <entry>23.3.2</entry>
667 <entry>Class template <code>multimap</code></entry>
672 <entry>23.3.3</entry>
673 <entry>Class template <code>set</code></entry>
678 <entry>23.3.4</entry>
679 <entry>Class template <code>multiset</code></entry>
685 <emphasis>24</emphasis>
687 <entry namest="c2" nameend="c4" align="left">
688 <emphasis>Iterators</emphasis>
693 <entry>Requirements</entry>
699 <entry>Header <code><iterator></code> synopsis</entry>
705 <entry>Iterator primitives</entry>
711 <entry>Predefined iterators and Iterator adaptors</entry>
716 <entry>24.4.1</entry>
717 <entry>Reverse iterators</entry>
722 <entry>24.4.2</entry>
723 <entry>Insert iterators</entry>
729 <entry>Stream iterators</entry>
734 <entry>24.5.1</entry>
735 <entry>Class template <code>istream_iterator</code></entry>
740 <entry>24.5.2</entry>
741 <entry>Class template <code>ostream_iterator</code></entry>
746 <entry>24.5.3</entry>
747 <entry>Class template <code>istreambuf_iterator</code></entry>
752 <entry>24.5.4</entry>
753 <entry>Class template <code>ostreambuf_iterator</code></entry>
759 <emphasis>25</emphasis>
761 <entry namest="c2" nameend="c4" align="left">
762 <emphasis>Algorithms</emphasis>
767 <entry>Non-modifying sequence operations</entry>
773 <entry>Mutating sequence operations</entry>
779 <entry>Sorting and related operations</entry>
785 <entry>C library algorithms</entry>
791 <emphasis>26</emphasis>
793 <entry namest="c2" nameend="c4" align="left">
794 <emphasis>Numerics</emphasis>
799 <entry>Numeric type requirements</entry>
805 <entry>Complex numbers</entry>
811 <entry>Numeric arrays</entry>
816 <entry>26.3.1</entry>
817 <entry>Header <code><valarray></code> synopsis</entry>
822 <entry>26.3.2</entry>
823 <entry>Class template <code>valarray</code></entry>
828 <entry>26.3.3</entry>
829 <entry><code>valarray</code> non-member operations</entry>
834 <entry>26.3.4</entry>
835 <entry>Class <code>slice</code></entry>
840 <entry>26.3.5</entry>
841 <entry>Class template <code>slice_array</code></entry>
846 <entry>26.3.6</entry>
847 <entry>Class <code>gslice</code></entry>
852 <entry>26.3.7</entry>
853 <entry>Class template <code>gslice_array</code></entry>
858 <entry>26.3.8</entry>
859 <entry>Class template <code>mask_array</code></entry>
864 <entry>26.3.9</entry>
865 <entry>Class template <code>indirect_array</code></entry>
871 <entry>Generalized numeric operations</entry>
876 <entry>26.4.1</entry>
877 <entry><code>accumulate</code></entry>
882 <entry>26.4.2</entry>
883 <entry><code>inner_product</code></entry>
888 <entry>26.4.3</entry>
889 <entry><code>partial_sum</code></entry>
894 <entry>26.4.4</entry>
895 <entry><code>adjacent_difference</code></entry>
900 <entry>26.4.5</entry>
907 <entry>C Library</entry>
913 <emphasis>27</emphasis>
915 <entry namest="c2" nameend="c4" align="left">
916 <emphasis>Input/output</emphasis>
921 <entry>Requirements</entry>
927 <entry>Forward declarations</entry>
933 <entry>Standard iostream objects</entry>
938 <entry>27.3.1</entry>
939 <entry>Narrow stream objects</entry>
944 <entry>27.3.2</entry>
945 <entry>Wide stream objects</entry>
951 <entry>Iostreams base classes</entry>
957 <entry>Stream buffers</entry>
963 <entry>Formatting and manipulators</entry>
969 <entry>String-based streams</entry>
975 <entry>File-based streams</entry>
981 <emphasis>Appendix D</emphasis>
983 <entry namest="c2" nameend="c4" align="left">
984 <emphasis>Compatibility features</emphasis>
989 <entry>Increment operator with bool operand</entry>
995 <entry><code>static</code> keyword</entry>
1001 <entry>Access declarations</entry>
1007 <entry>Implicit conversion from const strings</entry>
1013 <entry>C standard library headers</entry>
1019 <entry>Old iostreams members</entry>
1025 <entry>char* streams</entry>
1035 <sect3 id="iso.1998.specific" xreflabel="Implementation Specific">
1036 <title>Implementation Specific Behavior</title>
1039 The ISO standard defines the following phrase:
1045 <code>[1.3.5] implementation-defined behavior</code>
1049 Behavior, for a well-formed program construct and correct data, that
1050 depends on the implementation <emphasis>and that each implementation
1051 shall document</emphasis>.
1058 We do so here, for the C++ library only. Behavior of the
1059 compiler, linker, runtime loader, and other elements of "the
1060 implementation" are documented elsewhere. Everything listed
1061 in Annex B, Implementation Qualities, are also part of the
1062 compiler, not the library.
1065 For each entry, we give the section number of the standard, when
1066 applicable. This list is probably incomplet and inkorrekt.
1069 <emphasis>[1.9]/11 #3</emphasis> If <code>isatty(3)</code> is true, then
1070 interactive stream support is implied.
1073 <emphasis>[17.4.4.5]</emphasis> Non-reentrant functions are probably best
1074 discussed in the various sections on multithreading (see above).
1076 <!-- [17.4.4.8]/3 says any function that doesn't have an exception-spec
1077 can throw whatever we want; see also its footnote. Let's list those
1078 in the sections where the function itself occurs.
1080 <para><emphasis>[18.1]/4</emphasis> The type of <code>NULL</code> is described
1081 <ulink url="../18_support/howto.html#1">here</ulink>.
1083 <para><emphasis>[18.3]/8</emphasis> Even though it's listed in the library
1084 sections, libstdc++ has zero control over what the cleanup code hands
1085 back to the runtime loader. Talk to the compiler people. :-)
1087 <para><emphasis>[18.4.2.1]/5</emphasis> (bad_alloc),
1088 <emphasis>[18.5.2]/5</emphasis> (bad_cast),
1089 <emphasis>[18.5.3]/5</emphasis> (bad_typeid),
1090 <emphasis>[18.6.1]/8</emphasis> (exception),
1091 <emphasis>[18.6.2.1]/5</emphasis> (bad_exception): The <code>what()</code>
1092 member function of class <code>std::exception</code>, and these other
1093 classes publicly derived from it, simply returns the name of the
1094 class. But they are the <emphasis>mangled</emphasis> names; you will need to call
1095 <code>c++filt</code> and pass the names as command-line parameters to
1096 demangle them, or call a
1097 <ulink url="../18_support/howto.html#5">runtime demangler function</ulink>.
1098 (The classes in <code><stdexcept></code> have constructors which
1099 require an argument to use later for <code>what()</code> calls, so the
1100 problem of <code>what()</code>'s value does not arise in most
1101 user-defined exceptions.)
1103 <para><emphasis>[18.5.1]/7</emphasis> The return value of
1104 <code>std::type_info::name()</code> is the mangled type name (see the
1105 previous entry for more).
1107 <para><emphasis>[20.1.5]/5</emphasis> <emphasis>"Implementors are encouraged to
1108 supply libraries that can accept allocators that encapsulate more
1109 general memory models and that support non-equal instances. In such
1110 implementations, any requirements imposed on allocators by containers
1111 beyond those requirements that appear in Table 32, and the semantics
1112 of containers and algorithms when allocator instances compare
1113 non-equal, are implementation-defined."</emphasis> As yet we don't
1114 have any allocators which compare non-equal, so we can't describe how
1117 <para><emphasis>[21.1.3.1]/3,4</emphasis>,
1118 <emphasis>[21.1.3.2]/2</emphasis>,
1119 <emphasis>[23.*]'s foo::iterator</emphasis>,
1120 <emphasis>[27.*]'s foo::*_type</emphasis>,
1121 <emphasis>others...</emphasis>
1122 Nope, these types are called implementation-defined because you
1123 shouldn't be taking advantage of their underlying types. Listing them
1124 here would defeat the purpose. :-)
1126 <para><emphasis>[21.1.3.1]/5</emphasis> I don't really know about the mbstate_t
1127 stuff... see the <ulink url="../22_locale/howto.html">chapter 22 notes</ulink>
1128 for what does exist.
1130 <para><emphasis>[22.*]</emphasis> Anything and everything we have on locale
1131 implementation will be described
1132 <ulink url="../22_locale/howto.html">over here</ulink>.
1134 <para><emphasis>[26.2.8]/9</emphasis> I have no idea what
1135 <code>complex<T></code>'s pow(0,0) returns.
1137 <para><emphasis>[27.4.2.4]/2</emphasis> Calling
1138 <code>std::ios_base::sync_with_stdio</code> after I/O has already been
1139 performed on the standard stream objects will
1140 flush the buffers, and <!-- this line might go away -->
1141 destroy and recreate the underlying buffer instances. Whether or not
1142 the previously-written I/O is destroyed in this process depends mostly
1143 on the --enable-libio choice: for stdio, if the written data is
1144 already in the stdio buffer, the data may be completely safe!
1146 <para><emphasis>[27.6.1.1.2]</emphasis>,
1147 <emphasis>[27.6.2.3]</emphasis> The I/O sentry ctor and dtor can perform
1148 additional work than the minimum required. We are not currently taking
1149 advantage of this yet.
1151 <para><emphasis>[27.7.1.3]/16</emphasis>,
1152 <emphasis>[27.8.1.4]/10</emphasis>
1153 The effects of <code>pubsetbuf/setbuf</code> are described
1154 <ulink url="../27_io/howto.html#2">in this chapter</ulink>.
1156 <para><emphasis>[27.8.1.4]/16</emphasis> Calling <code>fstream::sync</code> when
1157 a get area exists will... whatever <code>fflush()</code> does, I think.