名稱空間
變體
操作

std::basic_spanstream<CharT,Traits>::operator=

來自 cppreference.com
< cpp‎ | io‎ | basic_spanstream
basic_spanstream& operator=( basic_spanstream&& other );
(1) (C++23 起)
basic_spanstream& operator=( const basic_spanstream& ) = delete;
(2) (C++23 起)
1)other 移動賦值給 *this,有效地移動賦值了 std::basic_iostream 基類子物件和封裝的 std::basic_spanbuf
2) 複製賦值運算子被刪除。basic_spanstream 不可複製賦值。

請注意,基類的移動賦值運算子會交換 *thisother 之間的所有流狀態變數(除了 rdbuf())。

在移動賦值後,other 中包裝的 std::basic_spanbuf 是否仍持有底層緩衝區是實現定義的。

目錄

[edit] 引數

其他 - 另一個要從中移動的流

[edit] 返回值

*this

[編輯] 異常

可能丟擲實現定義的異常。

[edit] 示例

[edit] 參閱

賦值 basic_spanbuf 物件
(std::basic_spanbuf<CharT,Traits> 的公開成員函式) [編輯]
(C++11)
移動賦值另一個basic_iostream
(保護成員函式) [編輯]