N1621=04-0061 Jens Maurer 24 Mar 2004
Replace in section 5.1.1 [tr.rand.req] before table 5.2:
In table 5.2, [...],byos
is convertible to an lvalue of typestd::ostream
, andis
is convertible to an lvalue of typestd::istream
.
In table 5.2, [...],Replace in section 5.1.1 [tr.rand.req] in table 5.2, in the row foros
is an lvalue of the type of some class template specializationbasic_ostream<charT, traits>
, andis
is an lvalue of the type of some class template specializationbasic_istream<charT, traits>
, wherecharT
andtraits
are constrained according to [lib.strings] and [lib.input.output].
os << x
, the return type
std::ostream&
by
reference to the type of os
Also, replace in the row for is >> v
, the return type
std::istream&
by
reference to the type of is
and the pre/post-condition
sets the state v(i) ofbyv
as determined by reading its textual representation fromis
. post: Theis
.fmtflags are unchanged.
sets the stateIn section 5.1.1 [tr.rand.req], add at the end of the paragraph preceding table 5.3v(i)
ofv
as determined by reading its textual representation fromis
. pre: The textual representation was previously written using aos
whose imbued locale and whose type's template specialization argumentscharT
andtraits
were the same than those ofis
, respectively. post: Theis
.fmtflags are unchanged.
Replace in section 5.1.1 [tr.rand.req] in table 5.3, in the row foros
is convertible to an lvalue of the type of some class template specializationbasic_ostream<charT, traits>
, andis
is convertible to an lvalue of the type of some class template specializationbasic_istream<charT, traits>
, wherecharT
andtraits
are constrained according to [lib.strings] and [lib.input.output].
os << x
, the return type
std::ostream&
by
reference to the type of os
Also, replace in the row for is >> v
, the return type
std::istream&
by
reference to the type of is
and the pre/post-condition
restores the parameters and additional internal data of the distribution u. pre:byis
provides a textual representation that was previously written byoperator<<
. post: Theis
.fmtflags are unchanged.
restores the parameters and additional internal data of the distribution u. pre:is
provides a textual representation that was previously written using aos
whose imbued locale and whose type's template specialization argumentscharT
andtraits
were the same than those ofis
, respectively. post: Theis
.fmtflags are unchanged.