protected member function
<ios> <iostream>
void move (basic_ios& x);
void move (basic_ios&& x);
Move internals
Transfers all internal members of x to *this
, except the associated stream buffer (rdbuf returns a null pointer after the call).
x is left in an unspecified but valid state, except that it is not tied (tie returns always a null pointer) and its associated stream buffer is unchanged (rdbuf returns the same as before the call).
Derived classes can call this function to implement move semantics.
Parameters
- x
- Stream object whose members are moved to *this.
Data races
Modifies both stream objects (*this
and x).
Concurrent access to any of these stream objects may cause data races.
Exception safety
Basic guarantee: if an exception is thrown, both streams are in a valid state.