Files
2025-10-25 03:02:53 +03:00

2.6 KiB
Raw Permalink Blame History

[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);

1

#

Effects: Assigns initial values to its member objects by callinginit(sb).

🔗

basic_ios();

2

#

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();

3

#

Remarks: The destructor does not destroyrdbuf().

🔗

void init(basic_streambuf<charT, traits>* sb);

4

#

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