C++ in a Nutshell
| resetiosflags function | Clears specified flags |
| manip_t resetiosflags (ios_base::fmtflags mask) |
The resetiosflags function clears the flag bits in mask for a stream. In other words, it performs the equivalent of stream .setf(ios_base::fmtflags(0) , mask) .
See Also
setiosflags function, ios_base in <ios>
| setbase function | Sets conversion radix |
| manip_t setbase (int base) |
The setbase function sets the conversion radix for a stream. In other words, it performs the equivalent of stream .setf( newbase , ios_base::basefield) , in which newbase depends on base , as shown in Table 13-11. Notice that any value of a base other than 8, 10, or 16 is treated the same as .
Table 13-11. Conversion radix
| setbase argument | fmtflags equivalent |
|---|---|
| 8 | ios_base::oct |
| 10 | ios_base::dec |
| 16 | ios_base::hex |
| Anything else |
|
See Also
ios_base in <ios>
| setfill function template | Sets pad character |
| template <typename charT> manip_t setfill (charT c) |
The setfill function template sets the fill character for a stream to c . In other words, it performs the equivalent of stream .fill(c) .
See Also
ios_base in <ios>
| setiosflags function | Sets specified flags |
| manip_t setiosflags (ios_base::fmtflags mask) |
The setiosflags function sets the flag bits in mask for a stream. In other words, it performs the equivalent of stream .setf(mask) .
See Also
resetiosflags function, ios_base in <ios>
| setprecision function | Sets precision |
| manip_t setprecision (int n) |
The setprecision function template sets the output precision for a stream to n . In other words, it performs the equivalent of stream .precision(n) .
See Also
ios_base in <ios>
| setw function | Sets field width |
| 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>