public member function
<fstream>

std::ifstream::operator=

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

Parameters

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