Namespaces
Variants

std::basic_syncbuf<CharT,Traits,Allocator>:: operator=

From cppreference.net
basic_syncbuf & operator = ( basic_syncbuf && other ) ;

まず、 emit() を呼び出し、保留中のすべての出力(および遅延フラッシュがある場合はそれも)をラップされたストリームに送信します。

その後、一時ストレージ、ラップされたストレームポインタ、ポリシー、およびその他すべての状態(ミューテックスポインタなど)を含むすべての内容を other からムーブ代入によって転送します。ムーブ後、 other はストリームに関連付けられておらず、 other. get_wrapped ( ) == nullptr となります。 other の基底クラス std::basic_streambuf のputエリアメンバポインタはnullであることが保証されます。ムーブ元の other を破棄しても出力は生成されません。

std:: allocator_traits < Allocator > :: propagate_on_container_move_assignment :: value false の場合、アロケータは変更されません。それ以外の場合、ムーブ代入後、 get_allocator ( ) other. get_allocator ( ) と等しくなります。

目次

パラメータ

その他 - 移動元の別の std::basic_syncbuf

戻り値

* this

関連項目

basic_osyncstream オブジェクトを代入する
( std::basic_osyncstream<CharT,Traits,Allocator> の 公開メンバ関数)
basic_syncbuf オブジェクトを構築する
(公開メンバ関数)
内部バッファ全体をアトミックにラップされたストリームバッファに送信する
(公開メンバ関数)
2つの basic_syncbuf オブジェクトを交換する
(公開メンバ関数)