CARVIEW |
Select Language
HTTP/1.1 200 OK
Server: nginx
Date: Sat, 19 Jul 2025 06:10:50 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
ETag: W/"74ba-5ecmh9esebOSq2dSDrJ4SC+Zk2U"
Content-Encoding: gzip
The C++ library includes the same definitions as the C language library organized in the same structure of header files, with the following differences:
The are also certain specific changes in the C++ implementation:
C++11 includes the C library as described by the 1999 ISO C standard and its Technical Corrigenda 1, 2 and 3 (ISO/IEC 9899:1999 and ISO/IEC 9899:1999/Cor.1,2,3), plus <cuchar> (as by ISO/IEC 19769:2004).
Other introductions by the 2011 ISO C standard are not compatible with C++.
Reference
C library:
- <cassert> (assert.h)
- <cctype> (ctype.h)
- <cerrno> (errno.h)
-
<cfenv> (fenv.h)C++11
- <cfloat> (float.h)
-
<cinttypes> (inttypes.h)C++11
- <ciso646> (iso646.h)
- <climits> (limits.h)
- <clocale> (locale.h)
- <cmath> (math.h)
- <csetjmp> (setjmp.h)
- <csignal> (signal.h)
- <cstdarg> (stdarg.h)
-
<cstdbool> (stdbool.h)C++11
- <cstddef> (stddef.h)
-
<cstdint> (stdint.h)C++11
- <cstdio> (stdio.h)
- <cstdlib> (stdlib.h)
- <cstring> (string.h)
-
<ctgmath> (tgmath.h)C++11
- <ctime> (time.h)
-
<cuchar> (uchar.h)C++11
- <cwchar> (wchar.h)
- <cwctype> (wctype.h)
Containers:
-
<array>C++11
- <deque>
-
<forward_list>C++11
- <list>
- <map>
- <queue>
- <set>
- <stack>
-
<unordered_map>C++11
-
<unordered_set>C++11
- <vector>
-
Input/Output:
Multi-threading:
-
<atomic>C++11
-
<condition_variable>C++11
-
<future>C++11
-
<mutex>C++11
-
<thread>C++11
-
Other:
- <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
-
<type_traits>C++11
-
<typeindex>C++11
- <typeinfo>
- <utility>
- <valarray>
- Reference
- C library
library
C library
C Language Library
- Each header file has the same name as the C language version but with a "c" prefix and no extension. For example, the C++ equivalent for the C language header file <stdlib.h> is <cstdlib>.
- Every element of the library is defined within the std namespace.
The are also certain specific changes in the C++ implementation:
- wchar_t, char16_t, char32_t and bool are fundamental types in C++ and therefore are not defined in the corresponding header where they appear in C. The same applies to several macros in the header <iso646.h>, which are keywords in C++.
- The following functions have changes in their declarations related to the constness of their parameters: strchr, strpbrk, strrchr, strstr, memchr.
- The functions atexit, exit and abort, defined in <cstdlib> have additions to their behavior in C++.
- Overloaded versions of some functions are provided with additional types as parameters and the same semantics, like float and long double versions of the functions in the cmath header file, or long versions for abs and div.
Note on versions
C++98 includes the C library as described by the 1990 ISO C standard and its amendment #1 (ISO/IEC 9899:1990 and ISO/IEC 9899:1990/DAM 1).C++11 includes the C library as described by the 1999 ISO C standard and its Technical Corrigenda 1, 2 and 3 (ISO/IEC 9899:1999 and ISO/IEC 9899:1999/Cor.1,2,3), plus <cuchar> (as by ISO/IEC 19769:2004).
Other introductions by the 2011 ISO C standard are not compatible with C++.
Headers
- <cassert> (assert.h)
- C Diagnostics Library (header)
- <cctype> (ctype.h)
- Character handling functions (header)
- <cerrno> (errno.h)
- C Errors (header)
- <cfloat> (float.h)
- Characteristics of floating-point types (header)
- <ciso646> (iso646.h)
- ISO 646 Alternative operator spellings (header)
- <climits> (limits.h)
- Sizes of integral types (header)
- <clocale> (locale.h)
- C localization library (header)
- <cmath> (math.h)
- C numerics library (header)
- <csetjmp> (setjmp.h)
- Non local jumps (header)
- <csignal> (signal.h)
- C library to handle signals (header)
- <cstdarg> (stdarg.h)
- Variable arguments handling (header)
- <cstddef> (stddef.h)
- C Standard definitions (header)
- <cstdio> (stdio.h)
- C library to perform Input/Output operations (header)
- <cstdlib> (stdlib.h)
- C Standard General Utilities Library (header)
- <cstring> (string.h)
- C Strings (header)
- <ctime> (time.h)
- C Time Library (header)
- <cassert> (assert.h)
- C Diagnostics Library (header)
- <cctype> (ctype.h)
- Character handling functions (header)
- <cerrno> (errno.h)
- C Errors (header)
- <cfloat> (float.h)
- Characteristics of floating-point types (header)
- <ciso646> (iso646.h)
- ISO 646 Alternative operator spellings (header)
- <climits> (limits.h)
- Sizes of integral types (header)
- <clocale> (locale.h)
- C localization library (header)
- <cmath> (math.h)
- C numerics library (header)
- <csetjmp> (setjmp.h)
- Non local jumps (header)
- <csignal> (signal.h)
- C library to handle signals (header)
- <cstdarg> (stdarg.h)
- Variable arguments handling (header)
- <cstdbool> (stdbool.h)
- Boolean type (header)
- <cstddef> (stddef.h)
- C Standard definitions (header)
- <cstdint> (stdint.h)
- Integer types (header)
- <cstdio> (stdio.h)
- C library to perform Input/Output operations (header)
- <cstdlib> (stdlib.h)
- C Standard General Utilities Library (header)
- <cstring> (string.h)
- C Strings (header)
- <ctime> (time.h)
- C Time Library (header)
- <cuchar> (uchar.h)
- Unicode characters (header)
- <cwchar> (wchar.h)
- Wide characters (header)
- <cwctype> (wctype.h)
- Wide character type (header)
Home page | Privacy policy
© cplusplus.com, 2000-2025 - All rights reserved - v3.3.4s
Spotted an error? contact us
© cplusplus.com, 2000-2025 - All rights reserved - v3.3.4s
Spotted an error? contact us