Compartilhar via


basic_ofstream::swap

Exchanges the contents of two basic_ofstream objects.

void swap(
    basic_ofstream& _Right
);

Parameters

  • _Right
    An lvalue reference to another basic_ofstream object.

Remarks

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

Requirements

Header: <fstream>

Namespace: std

See Also

Reference

basic_ofstream Class

basic_ostream Class

<fstream>

Lvalues and Rvalues

Thread Safety in the Standard C++ Library

iostream Programming

iostreams Conventions

Other Resources

basic_ostream Members

<fstream> Members