public member function
<fstream>

std::ofstream::operator=

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

Parameters

rhs
Another ofstream 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