Rediger

Del via


<iomanip>

Include the iostreams standard header <iomanip> to define several manipulators that each take a single argument.

Syntax

#include <iomanip>

Remarks

Each of these manipulators returns an unspecified type, called T1 through T10, that overloads both basic_istream<Elem, Tr>::operator>> and basic_ostream<Elem, Tr>::operator<<. For more information, see operator>> and operator<<.

Manipulators

Name Description
get_money Obtains a monetary amount, optionally in international format.
get_time Obtains a time in a time structure by using a specified format.
put_money Provides a monetary amount, optionally in international format.
put_time Provides a time in a time structure and a format string to use.
quoted Enables convenient round-tripping of strings with insertion and extraction operators.
resetiosflags Clears the specified flags.
setbase Set base for integers.
setfill Sets the character that will be used to fill spaces in a right-justified display.
setiosflags Sets the specified flags.
setprecision Sets the precision for floating-point values.
setw Specifies the width of the display field.

See also

Header Files Reference
Thread Safety in the C++ Standard Library
iostream Programming
iostreams Conventions