C++ Standard Library-Functions
C++ Standard Library-Functions
com
The C++ Standard Library provides a rich collection of functions for performing
common mathematical calculations, string manipulations, character manipulations,
input/output, error checking and many other useful operations. This makes the
programmer's job easier, because these functions provide many of the capabilities
programmers need. The C++ Standard Library functions are provided as part of the
C++ programming environment.
Header file names ending in .h are "old-style" header files that have been
superseded by the C++ Standard Library header files.
C++ Standard
Library header
file Explanation
<iostream> Contains function prototypes for the C++ standard input and
standard output functions. This header file replaces header file
<iostream.h>.
<cctype> Contains function prototypes for functions that test characters for
certain properties (such as whether the character is a digit or a
punctuation), and function prototypes for functions that can be
used to convert lowercase letters to uppercase letters and vice
versa. This header file replaces header file <ctype.h>
<fstream> Contains function prototypes for functions that perform input from
files on disk and output to files on disk. This header file replaces
header file <fstream.h>.
<climits> Contains the integral size limits of the system. This header file
replaces header file <limits.h>.
<cfloat> Contains the floating-point size limits of the system. This header
file replaces header file <float.h>.
<string> Contains the definition of class string from the C++ Standard
Library
<vector>, These header files contain classes that implement the C++
<list>, Standard Library containers. Containers store data during a
<deque>, program's execution.
<queue>,
<stack>,
<map>,
<set>,
<bitset>
<exception>, These header files contain classes that are used for exception
<stdexcept> handling.
<memory> Contains classes and functions used by the C++ Standard Library
to allocate memory to the C++ Standard Library containers.
<sstream> Contains function prototypes for functions that perform input from
strings in memory and output to strings in memory.
<iterator> Contains classes for accessing data in the C++ Standard Library
containers.
<limits> Contains classes for defining the numerical data type limits on
each computer platform.
<utility> Contains classes and functions that are used by many C++
Standard Library header files.
Mathematical Functions
Some of the important mathematical functions in header file <cmath> are
Function Meaning
log(x) logarithm of x
Function Meaning