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.
The declarations of the different elements provided by the library are split in several headers that shall be included in the code in order to have access to its components:
It can be divided into:
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:
Language support library:
limits | Numeric limits (header) |
new | Dynamic memory (header) |
Diagnostics library:
General utilities library:
utility | Utility components (header) |
memory | Memory elements (header) |
Strings library:
string | C++ Strings library (library) |
Localization library:
locale | Localization library (header) |
Containers library:
bitset | Bitset (class template) |
deque | Double ended queue (class template) |
list | List (class template) |
multimap | Multiple-key map (class template) |
multiset | Multiple-key set (class template) |
queue | FIFO queue (class template) |
stack | LIFO stack (class template) |
vector | Vector (class template) |
Iterators library:
Algorithms library:
Numeric library:
complex | Complex numbers library (header) |
valarray | Library for arrays of numeric values (header) |
numeric | Generalized numeric operations (header) |
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:
For more info see the reference page for the C++ Input/Output Library.
|