std::basic_ospanstream<CharT,Traits>::operator=
From 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から) |
1) `other` を `*this` にムーブ代入します。これにより、`std::basic_ostream` 基底クラスのサブオブジェクトと、ラップされた `std::basic_spanbuf` の両方が効果的にムーブ代入されます。
2) コピー代入演算子は削除されています。
basic_ospanstream はコピー代入可能ではありません。基底クラスのムーブ代入演算子は、`*this` と `other` の間で(rdbuf() を除く)すべてのストリーム状態変数をスワップすることに注意してください。
ムーブ代入後、`other` でラップされていた `std::basic_spanbuf` が基底バッファを保持するかどうかは、実装定義です。
目次 |
[編集] パラメータ
| その他 | - | ムーブ元となる別のストリーム |
[編集] 戻り値
*this
[編集] 例外
実装定義の例外をスローする場合があります。
[編集] 例
| このセクションは未完成です 理由: 例がありません |
[編集] 関連項目
basic_spanbufオブジェクトを代入します( std::basic_spanbuf<CharT,Traits> の public メンバ関数) | |
| (C++11) |
他のbasic_ostreamからムーブ代入する(protected member function) |