Input/output manipulators
From Cppreference
C++ Standard Library |
---|
Input/output library |
Input/output manipulators |
Template:cpp/io/manip/sidebar content |
Manipulators are helper functions that make possible to control input/output streams using operator<< or operator>>.
This is implemented as additional overloads of basic_ostream::operator<< and basic_istream::operator>> that accept a pointer to a function accepting a reference to a stream as a parameter.
Defined in header
<ios> | |||
|
switches between textual and numeric representation of booleans (function) |
||
|
controls whether prefix is used to indicate numeric base (function) |
||
|
controls whether decimal point is always included in floating-point representation (function) |
||
|
controls whether the + sign used with non-negative numbers (function) |
||
|
controls whether leading whitespace is skipped on input (function) |
||
|
controls whether uppercase characters are used with some output formats (function) |
||
|
controls whether output is flushed after each operation (function) |
||
|
sets the placement of fill characters (function) |
||
|
changes the base used for integer I/O (function) |
||
|
changes formatting used for floating-point I/O (function) |
||
Defined in header
<istream> | |||
|
consumes whitespace (function template) |
||
Defined in header
<ostream> | |||
|
outputs '\0' (function template) |
||
|
flushes the output stream (function template) |
||
|
outputs '\n' and flushes the output stream (function template) |
||
Defined in header
<iomanip> | |||
|
clears the specified ios_base flags (function) |
||
|
sets the specified ios_base flags (function) |
||
|
change the base used for integer I/O (function) |
||
|
change fill character (function) |
||
|
change floating-point precision (function) |
||
|
change the width of the next output (function) |
||
|
parses a monetary value (function template) |
||
|
formats and outputs a monetary value (function template) |
||
|
parses a date/time value of specified format (function template) |
||
|
formats and outputs a date/time value according to the specified format (function template) |