public member function
<fstream>

std::fstream::operator=

copy (1)
fstream& operator= (const fstream&) = delete;
move (2)
fstream& operator= (fstream&& rhs);
Move assignment
Acquires the contents of rhs, by move-assigning its members and base classes.

Parameters

rhs
Another fstream object.

Return Value

*this

Data races

Modifies both stream objects (*this and rhs).

Exception safety

No-throw guarantee: this member function never throws exceptions.

See also