[syncstream.syncbuf.special]

# 31 Input/output library [[input.output]](./#input.output)

## 31.11 Synchronized output streams [[syncstream]](syncstream#syncbuf.special)

### 31.11.2 Class template basic_syncbuf [[syncstream.syncbuf]](syncstream.syncbuf#special)

#### 31.11.2.6 Specialized algorithms [syncstream.syncbuf.special]

[ð](#lib:swap,basic_syncbuf)

`template<class charT, class traits, class Allocator>
  void swap(basic_syncbuf<charT, traits, Allocator>& a,
            basic_syncbuf<charT, traits, Allocator>& b);
`

[1](#1)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L12908)

*Effects*: Equivalent to a.swap(b)[.](#1.sentence-1)
