protected member function
Exchanges all internal members between x and
*this, except the pointers to the associated stream buffers: rdbuf shall return the same in both objects as before the call.
Internally, the function calls ios::swap.
Derived classes can call this function to implement custom swap functions.
- Another ostream object.
Modifies both stream objects (
*this and x).
No-throw guarantee: this member function never throws exceptions.