std::emit_o...mit_on_flush(3)
okay so bestie, welcome to std::emit_o...mit_on_flush(3) from the C++ Standard Libary β yes, that's the manual name, spelling and all, and yes, the title is literally std::emit_o...mit_on_flush(3) π
This page is giving "two tiny manipulators who control flush behavior" and honestly? iconic.
β¨ NAME β¨
std::emit_on_flush,std::noemit_on_flush β the original NAME line is literally std::emit_on_flush,std::noemit_on_flush - std::emit_on_flush,std::noemit_on_flush, so yeah, it says the same thing twice. We love a repetitive queen π
πΈ Synopsis πΈ
Defined in header <ostream> π¦
(1) (since C++20)
template< class CharT, class Traits >
std::basic_ostream<CharT, Traits>& emit_on_flush(
std::basic_ostream<CharT, Traits>& os );
(2) (since C++20)
template< class CharT, class Traits >
std::basic_ostream<CharT, Traits>& noemit_on_flush(
std::basic_ostream<CharT, Traits>& os );
If os.rdbuf() actually points to a std::basic_syncbuf<CharT, Traits, Allocator> buf, these manipulators toggle whether it emits β i.e., transmits data to the underlying stream buffer β when flushed:
- calls
buf.set_emit_on_sync(true) - calls
buf.set_emit_on_sync(false)
Otherwise, these manipulators have no effect π periodt.
This is an output-only I/O manipulator, it may be called with an expression such as out << std::emit_on_flush for any out of type std::basic_ostream.
π Parameters π
osβ reference to output stream.
π Return value π
- Returns
os(reference to the stream after manipulation) β¨
π Example π
This section is incomplete Reason: no example
π₯ See also π₯
set_emit_on_syncβ public member function ofstd::basic_syncbuf<CharT,Traits,Allocator>; changes the current emit-on-sync policy π
π Category: π
- Todo no example
That's the whole page, bestie! Big kiss from cppreference.com, dated 2024.06.10, for the std::emit_o...mit_on_flush(3) page π
β¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms