2.6 KiB
2.6 KiB
[basic.ios.cons]
31 Input/output library [input.output]
31.5 Iostreams base classes [iostreams.base]
31.5.4 Class template basic_ios [ios]
31.5.4.2 Constructors [basic.ios.cons]
explicit basic_ios(basic_streambuf<charT, traits>* sb);
Effects: Assigns initial values to its member objects by callinginit(sb).
basic_ios();
Effects: Leaves its member objects uninitialized.
The object shall be initialized by callingbasic_ios::init before its first use or before it is destroyed, whichever comes first; otherwise the behavior is undefined.
~basic_ios();
Remarks: The destructor does not destroyrdbuf().
void init(basic_streambuf<charT, traits>* sb);
Postconditions: The postconditions of this function are indicated in Table 142.
Table 142 — basic_ios::init() effects [tab:basic.ios.cons]
| ð Element |
Value |
|---|---|
| ð rdbuf() |
sb |
| ð tie() |
0 |
| ð rdstate() |
goodbit if sb is not a null pointer, otherwise badbit. |
| ð exceptions() |
goodbit |
| ð flags() |
skipws |
| ð width() |
0 |
| ð precision() |
6 |
| ð fill() |
widen(' ') |
| ð getloc() |
a copy of the value returned by locale() |
| ð iarray |
a null pointer |
| ð parray |
a null pointer |