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

從 cppreference.com
basic_ispanstream& operator=( basic_ispanstream&& other );
(1) (C++23 起)
basic_ispanstream& operator=( const basic_ispanstream& ) = delete;
(2) (C++23 起)
1) 移動賦值 other*this,相當於移動賦值 std::basic_istream 基類子對象和所包裝的 std::basic_spanbuf
2) 複製賦值運算符被棄置。basic_ispanstream 不可複製賦值。

注意,基類的移動賦值運算符在 *thisother 間交換所有流狀態變量(除了 rdbuf())。

包裝於 otherstd::basic_spanbuf 在移動賦值後是否仍然保有底層緩衝區是實現定義的。

目錄

[編輯] 參數

other - 要移動的另一流

[編輯] 返回值

*this

[編輯] 異常

可能會拋出由實現定義的異常。

[編輯] 示例

[編輯] 參閱

賦值 basic_spanbuf 對象
(std::basic_spanbuf<CharT,Traits> 的公開成員函數) [編輯]
(C++11)
從另一 basic_istream 移動賦值
(受保護成員函數) [編輯]