Name

setw function — Sets field width

Synopsis

                  manip_t 
                  setw(int n)

The setw function template sets the output field width for a stream to n. In other words, it performs the equivalent of stream .width(n).

See Also

ios_base in <ios>

Get C++ In a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.