名稱空間
變體
操作

std::swap(std::basic_filebuf)

來自 cppreference.com
< cpp‎ | io‎ | basic filebuf
 
 
 
 
template< class CharT, class Traits >

void swap( std::basic_filebuf<CharT,Traits>& lhs,

           std::basic_filebuf<CharT,Traits>& rhs );
(C++11 起)

std::basic_filebuf 過載 std::swap 演算法。交換 lhsrhs 的狀態。等效地呼叫 lhs.swap(rhs)

目錄

[編輯] 引數

lhs, rhs - 要交換其狀態的 std::basic_filebuf 物件

[編輯] 返回值

(無)

[編輯] 示例

[編輯] 參閱

(C++11)
交換兩個 basic_filebuf 物件
(公開成員函式) [編輯]
交換兩個物件的值
(函式模板) [編輯]