C++ standard library
From Wikipedia, the free encyclopedia
| C++ Standard Library |
|---|
| ios |
| iostream |
| iomanip |
| map |
| fstream |
| C Standard Library |
| cassert |
| cctype |
| cerrno |
| cfloat |
| cmath |
| cstdio |
| cstdlib |
| ctime |
In C++, the Standard Library is a collection of classes and functions, which are written in the core language. The Standard Library provides several generic containers, functions to utilise and manipulate these containers, function objects, generic strings and streams (including interactive and file I/O), support for some language features, and every day functions for tasks such as finding the square root of a number. The C++ Standard Library also incorporates the ISO C90 C Standard Library. Features of the Standard Library are declared within the std namespace.
The Standard Template Library is a subset of the C++ standard library, and contains the containers, algorithms, iterators, function objects, etc.; although some people use the term STL interchangeably with the C++ standard library.
Header files in the C++ standard library do not end in ".h".
Contents |
The following files contain the declarations of the Standard Library.
- <string>
Each header from the C standard library is included in the C++ standard library under a different name, generated by removing the .h, and adding a 'c' at the start, for example 'time.h' becomes 'ctime'. The only difference between these headers and the traditional C standard library headers is that where possible the functions should be placed into the std:: namespace (although few compilers actually do this). In ISO C, functions in standard library are allowed to be implimented by macros. but ISO C++ don't allow to impliment functions by macros.
- <cassert>
- <cctype>
- <cerrno>
- <cfloat>
- <climits>
- <cmath>
- <csetjmp>
- <csignal>
- <cstdlib>
- <cstdarg>
- <ctime>
- <cstdio>
- <cstring>
- Rogue Wave C++ Standard Library Class Reference
- Microsoft MSDN Library - Standard C++ Library Reference
- C++ Standard Library reference
- Bjarne Stroustrup: The C++ Programming Language, Addison-Wesley, ISBN 0-201-70073-5