Annex D (normative)
Compatibility features
[depr]
D.15
char*
streams
[depr.str.strstreams]
D.15.5
Class
strstream
[depr.strstream]
D.15.5.2
strstream
constructors
[depr.strstream.cons]
🔗
strstream
(
)
;
1
#
Effects
: Initializes the base class with
iostream
(
&
sb
)
.
🔗
strstream
(
char
*
s,
int
n, ios_base
::
openmode mode
=
ios_base
::
in
|
ios_base
::
out
)
;
2
#
Effects
: Initializes the base class with
iostream
(
&
sb
)
, and
sb
with one of the two constructors:
(2.1)
If
(
mode
&
app
)
=
=
0
, then
s
shall designate the first element of an array of
n
elements
.
The constructor is
strstreambuf
(
s,n,s
)
.
(2.2)
If
(
mode
&
app
)
!
=
0
, then
s
shall designate the first element of an array of
n
elements that contains an
ntbs
whose first element is designated by
s
.
The constructor is
strstreambuf
(
s,n,s
+
std
::
strlen
(
s
)
)
.