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

> C++ Atlas: `cppatlas.com/w/cpp/io/basic_syncbuf/~basic_syncbuf` | Source: https://en.cppreference.com/w/cpp/io/basic_syncbuf/~basic_syncbuf | Domain: Input/output

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.

## Official Specification Summary (cppreference)

```cpp
~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

> Note: This section is incomplete Reason: no example

### See also

- [(destructor)](https://en.cppreference.com/w/cpp/io/basic_osyncstream/~basic_osyncstream): destroys the `basic_osyncstream` and emits its internal buffer (public member function of `std::basic_osyncstream<CharT,Traits,Allocator>`)
- [(constructor)](https://en.cppreference.com/w/cpp/io/basic_syncbuf/basic_syncbuf): constructs a `basic_syncbuf` object (public member function)

---
Attribution: content from https://en.cppreference.com/w/cpp/io/basic_syncbuf/~basic_syncbuf (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.