名前空間
変種
操作

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

From cppreference.com
 
 
 
std::basic_ospanstream
メンバ関数
basic_ospanstream::operator=
(C++23)
基になるバッファ操作
非メンバ関数
 
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) [編集]
English 日本語 中文(简体) 中文(繁體)