std::basic_...mit_on_sync(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

🌸 NAME

std::basic_syncbuf::set_emit_on_sync β€” std::basic_syncbuf::set_emit_on_sync. Yeah bestie, the original repeats the name, and we respect the repetition πŸ’…. It’s from the C++ Standard Libary manual (that spelling is literally on the page), and the page title is std::basic_...mit_on_sync(3).

✨ Synopsis

void set_emit_on_sync( bool b ) noexcept;

This changes the current emit-on-sync policy. The value false β€” which is the default β€” indicates that any flush will be postponed until a call to emit. The value true makes flushes apply immediately. Periodt. ✨

πŸŽ€ Parameters

  • b β€” new value for the emit-on-sync policy. Slay.

🧚 Example

This section is incomplete.

Reason: no example 😭

πŸ‘‘ See also

  • sync β€” synchronizes the buffers with the associated character sequence.
  • [virtual] β€” virtual protected member function of std::basic_streambuf<CharT,Traits>.
  • emit β€” atomically transmits the entire internal buffer to the wrapped streambuf (public member function).
  • emit_on_flush β€” controls whether a stream's basic_syncbuf emits on flush.
  • noemit_on_flush β€” (function template) (C++20).

πŸ“ Category

  • Todo no example β€” literally the category, bestie. No example energy 😭.

Source: http://cppreference.com Β· version/date: 2024.06.10 Β· page: std::basic_...mit_on_sync(3) β€” byeee, go set that policy πŸ’–βœ¨

πŸ“¦ where this page comes from