ios::init | protected member function |
void init ( streambuf sb ); |
Initialize object [protected]
This protected member initializes the values of the stream's internal flags and member variables.
The state flags are set to their default values and the associated stream buffer is set to sb. The internal extensible arrays are set to null pointers.
After a stream object has been initialized with init, the values returned by the following members are:
member function | value |
---|---|
rdbuf() | sb |
tie() | 0 |
rdstate() | goodbit if sb is not a null pointer, badbit otherwise |
exceptions() | goodbit |
flags() | skipws | dec |
width() | 0 |
precision() | 6 |
fill() | ' ' (whitespace) |
getloc() | a copy of locale() |
Parameters
- sb
- Pointer to a streambuf object, which is set as the associated stream buffer for the object.
Return Value
noneSee also
ios::ios | Construct object (constructor member) |