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

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

Exchanges the contents of the sync stream buffer with those of other.

## Official Specification Summary (cppreference)

```cpp
void swap( basic_syncbuf& other );
```

Exchanges the contents of the sync stream buffer with those of `other`.

### Parameters

- `other` - sync stream buffer to exchange contents with

### Return value

(none)

### Example

> Note: This section is incomplete Reason: no example

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