Reference
Reference of the C++ Language Library, with detailed descriptions of its elements and examples on how to use its functions
The standard C++ library is a collection of functions, constants, classes, objects and templates that extends the C++ language providing basic functionality to perform several tasks, like classes to interact with the operating system, data containers, manipulators to operate with them and algorithms commonly needed.
It can be divided into:
C Library
The elements of the C language library are also included as a subset of the C++ Standard library. These cover many aspects, from general utility functions and macros to input/output functions and dynamic memory management functions:
- <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)
- <codecvt>
- Unicode conversion facets (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)
Containers
- <array>
- Array header (header)
- <bitset>
- Bitset header (header)
- <deque>
- Deque header (header)
- <forward_list>
- Forward list (header)
- <list>
- Forward 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)
Input/Output Stream Library
Provides functionality to use an abstraction called
streams specially designed to perform input and output operations on sequences of character, like files or strings.
This functionality is provided through several related classes, as shown in the following relationship map, with the corresponding header file names on top:
Atomics and threading library
[under construction]
Miscellaneous headers
- <algorithm>
- Standard Template Library: Algorithms (library
)
- <chrono>
- Time library (header)
- <complex>
- Complex numbers library (header)
- <exception>
- Standard exceptions (header)
- <functional>
- Function objects (header)
- <initializer_list>
- Initializer list (header)
- <iterator>
- Iterator definitions (header)
- <limits>
- Numeric limits (header)
- <locale>
- Localization library (header)
- <memory>
- Memory elements (header)
- <new>
- Dynamic memory (header)
- <numeric>
- Generalized numeric operations (header)
- <random>
- Random (header)
- <ratio>
- Ratio header (header)
- <regex>
- Regular Expressions (header)
- <stdexcept>
- Exception classes (header)
- <string>
- C++ Strings library (header)
- <system_error>
- System errors (header)
- <tuple>
- Tuple library (header)
- <typeinfo>
- Type information (header)
- <type_traits>
- type_traits (header)
- <utility>
- Utility components (header)
- <valarray>
- Library for arrays of numeric values (header)