basic_ofstream::operator=

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

basic_ofstream& operator=(
    basic_ofstream&& _Right
);

Parameters

  • _Right
    An rvalue reference to a basic_ofstream 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.

Requirements

Header: <fstream>

Namespace: std

See Also

Reference

basic_ofstream Class

<fstream>

Lvalues and Rvalues

iostream Programming

iostreams Conventions

Other Resources

basic_ofstream Members

<fstream> Members