header
<ios>
Input-Output base classes
Header providing base classes and types for the IOStream hierarchy of classes:
Types
- fpos
- Stream position class template (class template
)
- ios
- Base class with type-dependent members for the standard stream classes (class)
- ios_base
- Base class with type-independent members for the standard stream classes (class)
- streamoff
- Stream offset type (type)
- streampos
- Stream position type (type
)
- streamsize
- Stream size type (type)
Format flags manipulators
Independent flags (switch on):
- boolalpha
- Alphanumerical bool values (function
)
- showbase
- Show numerical base prefixes (function)
- showpoint
- Show decimal point (function)
- showpos
- Show positive signs (function)
- skipws
- Skip whitespaces (function)
- unitbuf
- Flush buffer after insertions (function)
- uppercase
- Generate upper-case letters (function)
Independent flags (switch off):
- noboolalpha
- No alphanumerical bool values (function)
- noshowbase
- Do not show numerical base prefixes (function)
- noshowpoint
- Do not show decimal point (function)
- noshowpos
- Do not show positive signs (function)
- noskipws
- Do not skip whitespaces (function)
- nounitbuf
- Do not force flushes after insertions (function)
- nouppercase
- Do not generate upper case letters (function)
Numerical base format flags ("basefield" flags):
- dec
- Use decimal base (function)
- hex
- Use hexadecimal base (function)
- oct
- Use octal base (function)
Floating-point format flags ("floatfield" flags):
- fixed
- Use fixed-point notation (function
)
- scientific
- Use scientific notation (function)
Adustment format flags ("adjustfield" flags):
- internal
- Adjust field by inserting characters at an internal position (function)
- left
- Adjust output to the left (function)
- right
- Adjust output to the right (function)
Input manipulators
- ws
- Extract whitespaces (function)
Output manipulators
- endl
- Insert newline and flush (function)
- ends
- Insert null character (function)
- flush
- Flush stream buffer (function)
Notice that not all standard manipulators are defined in this header. Streams also support an additional set of manipulators, which are parametric and defined apart in header <iomanip>. These are: setiosflags, resetiosflags, setbase, setfill, setprecision, setw