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) |
|
(C++11) (C++11) |
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) |
|
(C++11)
|
parses a monetary value (function template) |
(C++11)
|
formats and outputs a monetary value (function template) |
(C++11)
|
parses a date/time value of specified format (function template) |
(C++11)
|
formats and outputs a date/time value according to the specified format (function template) |