Opentopia Directory Encyclopedia Tools

C++ standard library

Encyclopedia : C : CS : CST : C++ standard library


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 C Standard Library. Features of the Standard Library are declared within the std namespace.

The algorithms and containers in the C++ Standard library are based on the STL and therefore the two terms are often used interchangeably.

Standard headers

The following files contain the declarations of the Standard Library.

Containers

General

Strings

Streams and Input/Output

Numerics

Language Support

C Standard Library

Main article: C standard library
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).

External links

References

 


From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.

Search Titles
0123456789
ABCDEFGHIJ
KLMNOPQRST
UVWXYZ?

E-mail this article to:

Personal Message: