std::basic_ios::init
From cppreference.com
| void init( std::basic_streambuf<CharT,Traits>* sb );
|
||
Sets the associated stream buffer to sb and initializes the internal state.
The postconditions are as follows:
| Element | Value |
|---|---|
| rdbuf() | sb |
| tie() | NULL |
| rdstate() | goodbit if sb is not NULL, otherwise badbit |
| exceptions() | goodbit |
| flags() | skipws | dec |
| width() | 0 |
| precision() | 6 |
| fill() | widen(' ') |
| getloc() | a copy of the value returned by std::locale() |
[edit] Parameters
| sb | - | stream buffer to associate to |
[edit] See also
| constructs the object (public member function) |
|