protected member function
<ostream> <iostream>
std::ostream::operator=
copy (1) | ostream& operator= (const ostream&) = delete; |
---|
move (2) | ostream& operator= (ostream&& rhs); |
---|
Move assignment
Exchanges all internal members between rhs and *this
, except the pointers to the associated stream buffers: rdbuf shall return the same in both objects as before the call.
This is the same behavior as calling member ostream::swap.
Derived classes can call this function to implement move semantics.
Parameters
- rhs
- Another ostream object.
Data races
Modifies both stream objects (*this
and rhs).
Exception safety
No-throw guarantee: this member function never throws exceptions.