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

std::swap(std::basic_filebuf)

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

template< class CharT, class Traits > void swap( std::basic_filebuf& lhs, std::basic_filebuf& rhs (since C++11)

重载std::swap算法std::basic_filebuf.交换lhs与...rhs.有效地打电话lhs.swap(rhs)...

参数

lhs, rhs-std::basic_filebuf objects whose states to swap

返回值

%280%29

另见

swap (C++11)swaps two basic_filebuf objects (public member function)
swapswaps the values of two objects (function template)

© cppreference.com

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

http://en.cppreference.com/w/cpp/io/basic[医]filebuf/swap 2