Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::basic_syncbuf<CharT,Traits,Allocator>::sync

      From cppreference.com
      <cpp‎ |io‎ |basic syncbuf
       
       
       
       
      protected:
      int sync() override;

      First, records that a flush is pending, by updating the appropriate private flag.

      Then, if the current emit-on-sync policy istrue, makes a call toemit().

      Otherwise (if the emit-on-sync policy isfalse, which is the default), the flush is suspended untilemit() is called, such as throughstd::basic_osyncstream::emit() orstd::basic_osyncstream::~basic_osyncstream

      Contents

      [edit]Parameters

      (none)

      [edit]Notes

      sync() or its equivalent is implicitly called byclose(),seekoff(), andseekpos() and explicitly called bystd::basic_streambuf::pubsync()

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      [virtual]
      synchronizes the buffers with the associated character sequence
      (virtual protected member function ofstd::basic_streambuf<CharT,Traits>)[edit]
      callsemit() on the underlyingbasic_syncbuf to transmit its internal data to the final destination
      (public member function ofstd::basic_osyncstream<CharT,Traits,Allocator>)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/io/basic_syncbuf/sync&oldid=144206"

      [8]ページ先頭

      ©2009-2025 Movatter.jp