мета-данные страницы
  •  

Это старая версия документа!


Стандартная библиотека 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
Заголовок Стандарт Описание
<cstdlib> C++98 General purpose utilities: program control, dynamic memory allocation, random numbers, sort and search
<execution> C++17 Predefined execution policies for parallel versions of the algorithms and execution control components (since C26) 17)(removed in C26) time utilities
<ctime> C++98 C-style time/date utilities

связь классов

Заголовок Стандарт Описание
<cinttypes> C++11 Formatting macros, intmax_t and uintmax_t math and conversions
<cstdio> C++98 C-style input-output functions
<filesystem> C++17 std::filesystem::path class and supporting functions
<fstream> C++98 std::basic_fstream, std::basic_ifstream, std::basic_ofstream class templates and typedefs
<iomanip> C++98 Helper functions to control the format of input and output
<ios> C++98 std::ios_base class, std::basic_ios class template and typedefs
<iosfwd> C++98 Forward declarations of all classes in the input/output library
<iostream> C++98 Several standard stream objects
<istream> C++98 std::basic_istream class template and typedefs
<ostream> C++98 std::basic_ostream, std::basic_iostream class templates and typedefs
<print> C++23 Formatted output library including std::print
<spanstream> C++23 std::basic_spanstream, std::basic_ispanstream, std::basic_ospanstream class templates and typedefs
<sstream> C++98 std::basic_stringstream, std::basic_istringstream, std::basic_ostringstream class templates and typedefs
<streambuf> C++98 std::basic_streambuf class template
<strstream>