мета-данные страницы
Это старая версия документа!
Стандартная библиотека C++
C Library
Стандартная библиотека C++ включает в себя спецификации стандарта ISO C90 из стандартной библиотеки C
| Заголовок | Стандарт | Описание |
|---|---|---|
| <assert.h> | C++98 | Behaves same as <cassert> |
| <ctype.h> | C++98 | Behaves as if each name from <cctype> is placed in global namespace |
| <errno.h> | C++98 | Behaves same as <cerrno> |
| <fenv.h> | C++11 | Behaves as if each name from <cfenv> is placed in global namespace |
| <float.h> | C++98 | Behaves same as <cfloat> |
| <inttypes.h> | C++11 | Behaves as if each name from <cinttypes> is placed in global namespace |
| <limits.h> | C++98 | Behaves same as <climits> |
| <locale.h> | C++98 | Behaves as if each name from <clocale> is placed in global namespace |
| <math.h> | C++98 | Behaves as if each name from <cmath> is placed in global namespace, except for names of mathematical special functions |
| <setjmp.h> | C++98 | Behaves as if each name from <csetjmp> is placed in global namespace |
| <signal.h> | C++98 | Behaves as if each name from <csignal> is placed in global namespace |
| <stdarg.h> | C++98 | Behaves as if each name from <cstdarg> is placed in global namespace |
| <stddef.h> | C++98 | Behaves as if each name from <cstddef> is placed in global namespace, except for names of std::byte and related functions |
| <stdint.h> | C++11 | Behaves as if each name from <cstdint> is placed in global namespace |
| <stdio.h> | C++98 | Behaves as if each name from <cstdio> is placed in global namespace |
| <stdlib.h> | C++98 | Behaves as if each name from <cstdlib> is placed in global namespace |
| <string.h> | C++98 | Behaves as if each name from <cstring> is placed in global namespace |
| <time.h> | C++98 | Behaves as if each name from <ctime> is placed in global namespace |
| <uchar.h> | C++11 | Behaves as if each name from <cuchar> is placed in global namespace |
| <wchar.h> | C++98 | Behaves as if each name from <cwchar> is placed in global namespace |
| <wctype.h> | C++98 | Behaves as if each name from <cwctype> is placed in global namespace |
| Специальные заголовки совместимости с C | ||
| <stdatomic.h> | C++23 | Defines _Atomic and provides corresponding components in the C standard library |
| <stdbit.h> | C++26 | Provides corresponding components in the C standard library |
| <stdckdint.h> | C++26 | Provides corresponding components in the C standard library |
| Пустые заголовки | ||
| <ccomplex> | C++11 устарел в C++17 удален в C++20 | Simply includes the header <complex> |
| <complex.h> | C++11 | Simply includes the header <complex> |
| <ctgmath> | C++11 устарел в C++17 удален в C++20 | Simply includes the headers <complex> and <cmath>: the overloads equivalent to the contents of the C header <tgmath.h> are already provided by those headers |
| <tgmath.h> | C++11 | Simply includes the headers <complex> and <cmath> |
| Бесполезные заголовки | ||
| <ciso646> | C++98 удален в C++20 | Empty header. The macros that appear in iso646.h in C are keywords in C++ |
| <cstdalign> | C++11 устарел в C++17 удален в C++20 | Defines one compatibility macro constant |
| <cstdbool> | C++11 устарел в C++17 удален в C++20 | Defines one compatibility macro constant |
| <iso646.h> | C++98 | Has no effect |
| <stdalign.h> | C++11 | Defines one compatibility macro constant |
| <stdbool.h> | C++11 | Defines one compatibility macro constant |
Потоки ввода/вывода
| Заголовочный файл | Описание |
|---|---|
| fstream | |
| iomanip | |
| ios | |
| iosfwd | |
| iostream | |
| istream | |
| ostream | |
| sstream | |
| streambuf |
Контейнеры
| Заголовочный файл | Описание |
|---|---|
| <array> | Array header (header) |
| <bitset> | Bitset header (header) |
| <deque> | Deque header (header) |
| <forward_list> | Forward list (header) |
| <list> | List header (header) |
| <map> | Map header (header) |
| <queue> | Queue header (header) |
| <set> | Set header (header) |
| <stack> | Stack header (header) |
| <unordered_map> | Unordered map header (header) |
| <unordered_set> | Unordered set header (header) |
| <vector> | Vector header (header) |
Многопоточность
| Заголовочный файл | Описание |
|---|---|
| atomic (C++11) | |
| condition_variable (C++11) | |
| future (C++11) | |
| mutex (C++11) | |
| shared_mutex (C++14) | |
| thread (C++11) |
Прочие
| Заголовочный файл | Описание |
|---|---|
| algorithm | |
| bitset | |
| chrono (C++11) | |
| codecvt (C++11) | |
| complex | |
| exception | |
| functional | |
| initializer_list (C++11) | |
| iterator | |
| limits | |
| locale | |
| memory | |
| new | |
| numeric | |
| random (C++11) | |
| ratio (C++11) | |
| regex (C++11) | |
| stdexcept | |
| string | |
| system_error (C++11) | |
| tuple (C++11) | |
| typeindex (C++11) | |
| typeinfo | |
| type_traits (C++11) | |
| utility | |
| valarray |
