Compartilhar via


Standard C++ Library Overview

All C++ library entities are declared or defined in one or more standard headers. To make use of a library entity in a program, write an include directive that names the relevant standard header. The Standard C++ Library consists of 50 required headers. This implementation also includes two additional headers, <hash_map> and <hash_set>, that are not required by the C++ Standard, for a total of 52 headers. These 52 C++ library headers (with the additional 18 Standard C headers) constitute a hosted implementation of the C++ library.

<algorithm>

<bitset>

<cassert>

<cctype>

<cerrno>

<cfloat>

<ciso646>

<climits>

<clocale>

<cmath>

<complex>

<csetjmp>

<csignal>

<cstdarg>

<cstddef>

<cstdio>

<cstdlib>

<cstring>

<ctime>

<cwchar>

<cwctype>

<deque>

<exception>

<fstream>

<functional>

<hash_map>

<hash_set>

<iomanip>

<ios>

<iosfwd>

<iostream>

<iso646.h>

<istream>

<iterator>

<limits>

<list>

<locale>

<map>

<memory>

<new>

<numeric>

<ostream>

<queue>

<set>

<sstream>

<stack>

<stdexcept>

<streambuf>

<string>

<strstream>

<utility>

<valarray>

<vector>

 

A freestanding implementation of the C++ library provides only a subset of these headers:

<cstddef>

<cstdlib> (declaring at least the functions abort, atexit, and exit)

<exception>

<limits>

<new>

<cstdarg>

The C++ library headers have two broader subdivisions:

This section contains the following sections:

For more information about Visual C++ run-time libraries, see C Run-Time Libraries.

See Also

Other Resources

Standard C++ Library Reference