std::basic_ios<CharT,Traits>::move
來自 cppreference.com
protected: void move( basic_ios& other ); |
(C++11 起) | |
protected: void move( basic_ios&& other ); |
(C++11 起) | |
除了關聯的 rdbuf
外,將當前狀態替換為 other
的狀態。呼叫後 other
處於有效但未指定的狀態。呼叫此函式後,rdbuf() 返回空指標,other.rdbuf() 返回與呼叫前相同的值,並且 other.tie() 返回空指標。
此成員函式受保護:它由派生流類 std::basic_ostream 和 std::basic_istream 的受保護移動建構函式呼叫,這些建構函式又由進一步派生的流類(例如 std::basic_ofstream)的公共移動建構函式呼叫,這些流類知道如何正確移動關聯的流緩衝區。
[編輯] 引數
其他 | - | 要從中傳輸狀態的 basic_ios 物件 |
[編輯] 返回值
(無)
[編輯] 參閱
(C++11) |
與另一個 std::basic_ios 交換,除了 rdbuf (protected member function) |