Returns: An output sequence that is tied to (synchronized with) the sequence controlled by the stream buffer.
Requires: If tiestr is not null, tiestr must not be reachable by traversing the linked list of tied stream objects starting from tiestr->tie().
Postcondition: tiestr == tie().
Returns: The previous value of tie().
Returns: A pointer to the streambuf associated with the stream.
Postcondition: sb == rdbuf().
Effects: Calls clear().
Returns: The previous value of rdbuf().
Returns: The prior value of ios_base::imbue().
Returns: use_facet< ctype<char_type> >(getloc()).narrow(c,dfault)
Returns: use_facet< ctype<char_type> >(getloc()).widen(c)
Returns: The character used to pad (fill) an output conversion to the specified field width.
Postcondition: traits::eq(fillch, fill())
Returns: The previous value of fill().
Effects: If (this == &rhs) does nothing. Otherwise assigns to the member objects of *this the corresponding member objects of rhs as follows:
calls each registered callback pair (fn, index) as (*fn)(erase_event, *this, index);
assigns to the member objects of *this the corresponding member objects of rhs, except that
rdstate(), rdbuf(), and exceptions() are left unchanged;
the contents of arrays pointed at by pword and iword are copied, not the pointers themselves;303 and
if any newly stored pointer values in *this point at objects stored outside the object rhs and those objects are destroyed when rhs is destroyed, the newly stored pointer values are altered to point at newly constructed copies of the objects;
calls each callback pair that was copied from rhs as (*fn)(copyfmt_event, *this, index);
Note: The second pass through the callback pairs permits a copied pword value to be zeroed, or to have its referent deep copied or reference counted, or to have other special action taken.
Postconditions: The postconditions of this function are indicated in Table [tab:iostreams.copyfmt.effects].
Postconditions: *this shall have the state that rhs had before the function call, except that rdbuf() shall return 0. rhs shall be in a valid but unspecified state, except that rhs.rdbuf() shall return the same value as it returned before the function call, and rhs.tie() shall return 0.
Effects: The states of *this and rhs shall be exchanged, except that rdbuf() shall return the same value as it returned before the function call, and rhs.rdbuf() shall return the same value as it returned before the function call.
Requires: sb != nullptr.
Effects: Associates the basic_streambuf object pointed to by sb with this stream without calling clear().
Postconditions: rdbuf() == sb.
This suggests an infinite amount of copying, but the implementation can keep track of the maximum element of the arrays that is non-zero.