在线文档教程
C++
输入/输出 | Input/output

std::swap(std::basic_ofstream)

STD::交换%28 std::basic[医]流%29

template< class CharT, class Traits > void swap( basic_ofstream &lhs, basic_ofstream &rhs

专攻std::swap算法std::basic_ofstream.交换lhs与...rhs.有效地打电话lhs.swap(rhs)...

参数

lhs, rhs-streams whose state to swap

返回值

%280%29

例外

%280%29

另见

swap (C++11)swaps two file streams (public member function)

© cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

http://en.cppreference.com/w/cpp/io/basic[医]Flow/Swap 2