[iostream.assign]

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

## 31.7 Formatting and manipulators [[iostream.format]](iostream.format#iostream.assign)

### 31.7.5 Input streams [[input.streams]](input.streams#iostream.assign)

#### 31.7.5.7 Class template basic_iostream [[iostreamclass]](iostreamclass#iostream.assign)

#### 31.7.5.7.4 Assignment and swap [iostream.assign]

[ð](#lib:operator=,basic_iostream)

`basic_iostream& operator=(basic_iostream&& rhs);
`

[1](#1)

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

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

[ð](#lib:swap,basic_iostream)

`void swap(basic_iostream& rhs);
`

[2](#2)

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

*Effects*: Calls basic_istream<charT, traits>​::​swap(rhs)[.](#2.sentence-1)
