basic_ofstream::swap

交换两个 basic_ofstream 对象的内容。

void swap(
    basic_ofstream& _Right
);

参数

  • _Right
    对其他 basic_ofstream 对象的 lvalue 引用。

备注

成员函数为 _Right内容交换此对象的内容。

要求

页眉: <fstream>

命名空间: std

请参见

参考

basic_ofstream 类

basic_ostream 类

<fstream>

Lvalues 和 Rvalues

C++ 标准库中的线程安全

iostream 编程

iostreams 约定

其他资源

basic_ostream 成员

fstream 成员