33 lines
902 B
Markdown
33 lines
902 B
Markdown
[ospanstream.swap]
|
|
|
|
# 31 Input/output library [[input.output]](./#input.output)
|
|
|
|
## 31.9 Span-based streams [[span.streams]](span.streams#ospanstream.swap)
|
|
|
|
### 31.9.5 Class template basic_ospanstream [[ospanstream]](ospanstream#swap)
|
|
|
|
#### 31.9.5.3 Swap [ospanstream.swap]
|
|
|
|
[ð](#lib:swap,basic_ospanstream)
|
|
|
|
`void swap(basic_ospanstream& rhs);
|
|
`
|
|
|
|
[1](#1)
|
|
|
|
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L10665)
|
|
|
|
*Effects*: Equivalent to:basic_ostream<charT, traits>::swap(rhs);*sb*.swap(rhs.*sb*);
|
|
|
|
[ð](#lib:swap,basic_ospanstream_)
|
|
|
|
`template<class charT, class traits>
|
|
void swap(basic_ospanstream<charT, traits>& x, basic_ospanstream<charT, traits>& y);
|
|
`
|
|
|
|
[2](#2)
|
|
|
|
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L10681)
|
|
|
|
*Effects*: Equivalent to x.swap(y)[.](#2.sentence-1)
|