From da67e10f59fedf3034bcc69a9eee354cb87af957 Mon Sep 17 00:00:00 2001
From: bkoz
C++98/03 include files. These are available in the default compilation mode, i.e. -std=c++98
or -std=gnu++98
.
-
Table 3.2. C++ 1998 Library Headers
algorithm | bitset | complex | deque | exception |
fstream | functional | iomanip | ios | iosfwd |
iostream | istream | iterator | limits | list |
locale | map | memory | new | numeric |
ostream | queue | set | sstream | stack |
stdexcept | streambuf | string | utility | typeinfo |
valarray | vector |
Table 3.3. C++ 1998 Library Headers for C Library Facilities
cassert | cerrno | cctype | cfloat | ciso646 |
climits | clocale | cmath | csetjmp | csignal |
cstdarg | cstddef | cstdio | cstdlib | cstring |
ctime | cwchar | cwctype |
+
Table 3.2. C++ 1998 Library Headers
algorithm | bitset | complex | deque | exception |
fstream | functional | iomanip | ios | iosfwd |
iostream | istream | iterator | limits | list |
locale | map | memory | new | numeric |
ostream | queue | set | sstream | stack |
stdexcept | streambuf | string | utility | typeinfo |
valarray | vector |
Table 3.3. C++ 1998 Library Headers for C Library Facilities
cassert | cerrno | cctype | cfloat | ciso646 |
climits | clocale | cmath | csetjmp | csignal |
cstdarg | cstddef | cstdio | cstdlib | cstring |
ctime | cwchar | cwctype |
C++11 include files. These are only available in C++11 compilation
mode, i.e. -std=c++11
or -std=gnu++11
.
-
Table 3.4. C++ 2011 Library Headers
algorithm | array | bitset | chrono | complex |
condition_variable | deque | exception | forward_list | fstream |
functional | future | initalizer_list | iomanip | ios |
iosfwd | iostream | istream | iterator | limits |
list | locale | map | memory | mutex |
new | numeric | ostream | queue | random |
ratio | regex | set | sstream | stack |
stdexcept | streambuf | string | system_error | thread |
tuple | type_traits | typeinfo | unordered_map | unordered_set |
utility | valarray | vector |
Table 3.5. C++ 2011 Library Headers for C Library Facilities
cassert | ccomplex | cctype | cerrno | cfenv |
cfloat | cinttypes | ciso646 | climits | clocale |
cmath | csetjmp | csignal | cstdarg | cstdbool |
cstddef | cstdint | cstdlib | cstdio | cstring |
ctgmath | ctime | cuchar | cwchar | cwctype |
+
Table 3.4. C++ 2011 Library Headers
algorithm | array | bitset | chrono | complex |
condition_variable | deque | exception | forward_list | fstream |
functional | future | initalizer_list | iomanip | ios |
iosfwd | iostream | istream | iterator | limits |
list | locale | map | memory | mutex |
new | numeric | ostream | queue | random |
ratio | regex | set | sstream | stack |
stdexcept | streambuf | string | system_error | thread |
tuple | type_traits | typeinfo | unordered_map | unordered_set |
utility | valarray | vector |
Table 3.5. C++ 2011 Library Headers for C Library Facilities
cassert | ccomplex | cctype | cerrno | cfenv |
cfloat | cinttypes | ciso646 | climits | clocale |
cmath | csetjmp | csignal | cstdarg | cstdbool |
cstddef | cstdint | cstdlib | cstdio | cstring |
ctgmath | ctime | cuchar | cwchar | cwctype |
In addition, TR1 includes as: -
Table 3.6. C++ TR 1 Library Headers
tr1/array | tr1/complex | tr1/memory | tr1/functional | tr1/random |
tr1/regex | tr1/tuple | tr1/type_traits | tr1/unordered_map | tr1/unordered_set |
tr1/utility |
Table 3.7. C++ TR 1 Library Headers for C Library Facilities
tr1/ccomplex | tr1/cfenv | tr1/cfloat | tr1/cmath | tr1/cinttypes |
tr1/climits | tr1/cstdarg | tr1/cstdbool | tr1/cstdint | tr1/cstdio |
tr1/cstdlib | tr1/ctgmath | tr1/ctime | tr1/cwchar | tr1/cwctype |
Decimal floating-point arithmetic is available if the C++ +
Table 3.6. C++ TR 1 Library Headers
tr1/array | tr1/complex | tr1/memory | tr1/functional | tr1/random |
tr1/regex | tr1/tuple | tr1/type_traits | tr1/unordered_map | tr1/unordered_set |
tr1/utility |
Table 3.7. C++ TR 1 Library Headers for C Library Facilities
tr1/ccomplex | tr1/cfenv | tr1/cfloat | tr1/cmath | tr1/cinttypes |
tr1/climits | tr1/cstdarg | tr1/cstdbool | tr1/cstdint | tr1/cstdio |
tr1/cstdlib | tr1/ctgmath | tr1/ctime | tr1/cwchar | tr1/cwctype |
Decimal floating-point arithmetic is available if the C++
compiler supports scalar decimal floating-point types defined via
__attribute__((mode(SD|DD|LD)))
.
-
+
Also included are files for the C++ ABI interface: -
+
And a large variety of extensions. -
Table 3.10. Extension Headers
ext/algorithm | ext/atomicity.h | ext/array_allocator.h | ext/bitmap_allocator.h | ext/cast.h |
ext/codecvt_specializations.h | ext/concurrence.h | ext/debug_allocator.h | ext/enc_filebuf.h | ext/extptr_allocator.h |
ext/functional | ext/iterator | ext/malloc_allocator.h | ext/memory | ext/mt_allocator.h |
ext/new_allocator.h | ext/numeric | ext/numeric_traits.h | ext/pb_ds/assoc_container.h | ext/pb_ds/priority_queue.h |
ext/pod_char_traits.h | ext/pool_allocator.h | ext/rb_tree | ext/rope | ext/slist |
ext/stdio_filebuf.h | ext/stdio_sync_filebuf.h | ext/throw_allocator.h | ext/typelist.h | ext/type_traits.h |
ext/vstring.h |
Table 3.11. Extension Debug Headers
debug/bitset | debug/deque | debug/list | debug/map | debug/set |
debug/string | debug/unordered_map | debug/unordered_set | debug/vector |
Table 3.12. Extension Profile Headers
profile/bitset | profile/deque | profile/list | profile/map |
profile/set | profile/unordered_map | profile/unordered_set | profile/vector |
A few simple rules. +
Table 3.10. Extension Headers
ext/algorithm | ext/atomicity.h | ext/array_allocator.h | ext/bitmap_allocator.h | ext/cast.h |
ext/codecvt_specializations.h | ext/concurrence.h | ext/debug_allocator.h | ext/enc_filebuf.h | ext/extptr_allocator.h |
ext/functional | ext/iterator | ext/malloc_allocator.h | ext/memory | ext/mt_allocator.h |
ext/new_allocator.h | ext/numeric | ext/numeric_traits.h | ext/pb_ds/assoc_container.h | ext/pb_ds/priority_queue.h |
ext/pod_char_traits.h | ext/pool_allocator.h | ext/rb_tree | ext/rope | ext/slist |
ext/stdio_filebuf.h | ext/stdio_sync_filebuf.h | ext/throw_allocator.h | ext/typelist.h | ext/type_traits.h |
ext/vstring.h |
Table 3.11. Extension Debug Headers
debug/bitset | debug/deque | debug/list | debug/map | debug/set |
debug/string | debug/unordered_map | debug/unordered_set | debug/vector |
Table 3.12. Extension Profile Headers
profile/bitset | profile/deque | profile/list | profile/map |
profile/set | profile/unordered_map | profile/unordered_set | profile/vector |