protected member function
<istream> <iostream>
copy (1) | basic_istream& operator= (const basic_istream&) = delete; |
---|
move (2) | basic_istream& operator= (basic_istream&& 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 basic_istream::swap.
Derived classes can call this function to implement move semantics.
Parameters
- rhs
- Another basic_istream object with the same template parameters (charT and traits).
Data races
Modifies both stream objects (*this
and rhs).
Exception safety
No-throw guarantee: this member function never throws exceptions.