protected member function
<ios> <iostream>

std::ios::move

void move (ios&  x);void move (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.

Return Value

none

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.

See also