# std::basic_syncbuf<CharT,Traits,Allocator>::~basic_syncbuf

From cppreference.com
< cpp‎ | io‎ | basic syncbuf

~basic_syncbuf(); |  |

Calls `emit()` to transmit all pending output (and delayed flush, if any) to the wrapped stream. If an exception is thrown by this call, it is caught and ignored.

### Parameters

(none)

### Notes

Normally called by the destructor of the owning std::basic_osyncstream.

### Example

| This section is incomplete Reason: no example

### See also

(destructor) | destroys the `basic_osyncstream` and emits its internal buffer (public member function of `std::basic_osyncstream<CharT,Traits,Allocator>`)
(constructor) | constructs a `basic_syncbuf` object (public member function)

Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/io/basic_syncbuf/%7Ebasic_syncbuf&oldid=144213"