std::basic_ospanstream<CharT,Traits>::operator=
來自 cppreference.com
< cpp | io | basic ospanstream
basic_ospanstream& operator=( basic_ospanstream&& other ); |
(1) | (C++23 起) |
basic_ospanstream& operator=( const basic_ospanstream& ) = delete; |
(2) | (C++23 起) |
2) 複製賦值運算子被刪除。
basic_ospanstream
不可複製賦值。請注意,基類的移動賦值運算子在 *this 和 other 之間交換所有流狀態變數(除了 rdbuf()
)。
在移動賦值後,other 中包裝的 std::basic_spanbuf 是否仍持有底層緩衝區是實現定義的。
目錄 |
[編輯] 引數
其他 | - | 另一個要從中移動的流 |
[編輯] 返回值
*this
[編輯] 異常
可能丟擲實現定義的異常。
[編輯] 示例
本節不完整 原因:無示例 |
[編輯] 另請參閱
賦值 basic_spanbuf 物件( std::basic_spanbuf<CharT,Traits> 的公共成員函式) | |
(C++11) |
從另一個basic_ostream 移動賦值(受保護成員函式) |