Namespaces
Variants
Views
Actions

C++ Standard Library header files

From cppreference.com
< cpp
Revision as of 17:42, 16 February 2012 by Arbalest (Talk | contribs)

Template:cpp/sidebar

The interface of C++ standard library is defined by a set of files. These are as following:

Contents

General

<cstdlib> General purpose utilities including C dynamic memory, random numbers, search, sort and environmental functions
<csignal> Functions and macro constants for signal management
<csetjmp> Macro (and function) that saves (and jumps) to an execution context
<cstdarg> Handling of variable length argument lists
<typeinfo> Runtime type information utilities

Numeric Limits

<climits> limits of integral types
<cfloat> limits of float types
<cstdint> limits of other types
<limits> standardized way to query properties of fundamental types

Memory

<new> Low-level memory management utilities
<memory> Higher level memory management utilities

Utilities

<bitset> Template:cpp/ltt class template
<functional> Function objects, designed for use with the standard algorithms
<utility> Various utility components
<ctime> C-style time/date utilites

Character Data

<cstddef> typedefs for types such as size_t, NULL and others
<cwchar> defines wide char types
<cctype> functions to determine the type contained in character data
<cwctype> functions for determining the type of wide character data

String Data

<cstring> various narrow character string handling functions
<cwstring> various wide character string handling functions
<string> Template:cpp/ltt class template

Regular Expressions library

<regex> Classes, algorithms and iterators to support regular expression processing


Containers library

<array> Template:cpp/ltt container (since C++11)
<vector> Template:cpp/ltt container
<deque> Template:cpp/ltt container
<list> Template:cpp/ltt container
<forward_list> Template:cpp/ltt container (since C++11)
<set> Template:cpp/ltt and Template:cpp/ltt associative containers
<map> Template:cpp/ltt and Template:cpp/ltt associative containers
<unordered_set> Template:cpp/ltt and Template:cpp/ltt unordered associative containers (since C++11)
<unordered_map> Template:cpp/ltt and Template:cpp/ltt unordered associative containers (since C++11)
<stack> Template:cpp/ltt container adaptor
<queue> Template:cpp/ltt and Template:cpp/ltt container adaptors

Algorithms library

<algorithm> Algorithms that operate on containers

Iterators library

<iterator> Container iterators


Localization library

<locale> Localization utilities
<clocale> C localization utilities

Numerics library

<cmath> Common mathematics functions
<complex> Complex number type
<valarray> Class for representing and manipulating arrays of values
<random> Random number generators and distributions
<numeric> Numeric operations on values in containers


Thread support library

<thread> Thread support library

Atomic Operations library

<atomic> Atomic Operations library


Input/output library

<iosfwd> forward declarations of all objects in the input/output library
<ios> Template:cpp/ltt class, Template:cpp/ltt class template and several typedefs
<istream> Template:cpp/ltt class template and several typedefs
<ostream> Template:cpp/ltt class template and several typedefs
<iostream> Template:cpp/ltt class template and several typedefs
<fstream> Template:cpp/ltt, Template:cpp/ltt, Template:cpp/ltt class templates and several typedefs
<sstream> Template:cpp/ltt, Template:cpp/ltt, Template:cpp/ltt class templates and several typedefs
<iomanip> Helper functions to control the format or input and output
<cstdio> C-style input-output functions

Errors and Diagnostics

<exception> Exception handling utilities
<stdexcept> Standard exception objects
<cassert> Conditionally compiled macro that compares its argument to zero
<system_error> defines std::error_code, a platform-dependent error code
<cerrno> Macro containing the last error number