std::flush_emit(3)

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

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 of std::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