std::flush_emit(3)
NAME
std::flush_emit β std::flush_emit. That's the name and the whole short-and-sweet description, bestie; she said what she said.
β¨ Synopsis β¨
okay so this icon lives in the C++ Standard Libary manual, page std::flush_emit(3), and here's the signature situation:
Defined in header <ostream>
template< class CharT, class Traits >
std::basic_ostream<CharT, Traits>& flush_emit(
std::basic_ostream<CharT, Traits>& os );
And yes, this one is (since C++20) β she's newer and she knows it. π
Here's the tea: it flushes the output sequence os as if by calling os.flush(). Then, if os.rdbuf() actually points to a std::basic_syncbuf<CharT, Traits, Allocator> buf, it calls buf.emit().
This is an output-only I/O manipulator, and it may be called with an expression such as out << std::flush_emit for any out of type std::basic_ostream. Slay.
Parameters
osβ reference to output stream.
Return value
osβ reference to the stream after manipulation. She comes back, periodt.
Example
This section is incomplete π
Reason: no example.
It's giving "TODO, no example" energy, and the category agrees. π
See also
flushβ synchronizes with the underlying storage device (public member function ofstd::basic_ostream<CharT,Traits>).
π Category π
- Todo no example.
π source/version: http://cppreference.com Β· date: 2024.06.10 Β· page: std::flush_emit(3) π
π¦ 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