Atomically transmits all pending output to the wrapped stream.
All emit() calls transferring characters to the same wrapped stream buffer object appear to execute in a total order, where each emit() call synchronizes-with subsequent emit() calls in that total order, even if these calls are made through difference instances of std::basic_syncbuf/std::basic_osyncstream. In practice, this means that emit() takes a lock uniquely associated with the wrapped stream object: for example, it could be held in a static hash map where the address of the wrapped stream is used as the key.
If a call had been made to sync since the last call to emit(), then also flushes the wrapped stream by calling pubsync() on it.
[edit] Parameters(none)
[edit] Return valuetrue if all of the following is true:
Returns false otherwise.
[edit] NotesNormally called by the destructor or move assignment of the owning std::basic_osyncstream, or by std::basic_osyncstream::emit.
[edit] Example [edit] See also destroys thebasic_osyncstream
and emits its internal buffer
std::basic_osyncstream<CharT,Traits,Allocator>
) [edit] calls emit() on the underlying basic_syncbuf
to transmit its internal data to the final destination
std::basic_osyncstream<CharT,Traits,Allocator>
) [edit] constructs a basic_syncbuf
object
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4