Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

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

      From cppreference.com
      <cpp‎ |io‎ |basic syncbuf
       
       
       
       
      basic_syncbuf& operator=( basic_syncbuf&& other);

      First, callsemit() to transmit all pending output (and delayed flush, if any) to the wrapped stream.

      Then performs move-assignment by moving all contents fromother, including the temporary storage, the wrapped stream pointer, policy, and all other state (such as the mutex pointer). After move,other is not associated with a stream, andother.get_wrapped()== nullptr. The put area member pointers of the base classstd::basic_streambuf ofother are guaranteed to be null. Destroying a moved-fromother will not produce any output.

      Ifstd::allocator_traits<Allocator>::propagate_on_container_move_assignment::value isfalse, then the allocator is unchanged. Otherwise, after move-assignment,get_allocator() equalsother.get_allocator().

      Contents

      [edit]Parameters

      other - another std::basic_syncbuf to move from

      [edit]Return value

      *this

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      assigns abasic_osyncstream object
      (public member function ofstd::basic_osyncstream<CharT,Traits,Allocator>)[edit]
      constructs abasic_syncbuf object
      (public member function)[edit]
      atomically transmits the entire internal buffer to the wrapped streambuf
      (public member function)[edit]
      swaps twobasic_syncbuf objects
      (public member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/io/basic_syncbuf/operator%3D&oldid=144216"

      [8]ページ先頭

      ©2009-2025 Movatter.jp