Partager via


basic_fstream::swap

Exchanges the contents of two basic_fstream objects.

void swap(basic_fstream& _Right);

Parameters

  • _Right
    An lvalue reference to a basic_fstream object.

Remarks

The member function exchanges the contents of this object and the contents of _Right.

Requirements

Header: <fstream>

Namespace: std

See Also

Reference

basic_fstream Class

<fstream>

Lvalues and Rvalues

iostream Programming

iostreams Conventions