streamsize width() const;
streamsize width( streamsize new_width );
Manages the minimum number of characters to generate on certain output operations and the maximum number of characters to generate on certain output operations.
|new_width||-||new field width setting|
The field width before the call to the function.
Some I/O functions call
width(0) before returning, see
std::setw (this results in this field having effect on the next I/O function only, and not on any subsequent I/O).
The exact effects this modifier has on the input and output vary between the individual I/O functions and are described at each
operator>> overload page individually.
| manages decimal precision of floating point operations
(public member function)
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.