Megosztás a következőn keresztül:


basic_ifstream::operator=

Assigns the content of this stream object. This is a move assignment involving an rvalue that does not leave a copy behind.

basic_ifstream& operator=(
    basic_ifstream&& _Right
);

Parameters

  • _Right
    An rvalue reference to a basic_ifstream object.

Return Value

Returns *this.

Remarks

The member operator replaces the contents of the object by using the contents of _Right, treated as an rvalue reference. For more information, see Lvalues and Rvalues.

Requirements

Header: <fstream>

Namespace: std

See Also

Reference

basic_ifstream Class

<fstream>

Lvalues and Rvalues

iostream Programming

iostreams Conventions