[ostream.iterator.ops]

# 24 Iterators library [[iterators]](./#iterators)

## 24.6 Stream iterators [[stream.iterators]](stream.iterators#ostream.iterator.ops)

### 24.6.3 Class template ostream_iterator [[ostream.iterator]](ostream.iterator#ops)

#### 24.6.3.3 Operations [ostream.iterator.ops]

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

`ostream_iterator& operator=(const T& value);
`

[1](#1)

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

*Effects*: As if by:*out_stream << value;if (delim)*out_stream << delim;return *this;

[ð](#lib:operator*,ostream_iterator)

`ostream_iterator& operator*();
`

[2](#2)

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

*Returns*: *this[.](#2.sentence-1)

[ð](#lib:operator++,ostream_iterator)

`ostream_iterator& operator++();
ostream_iterator& operator++(int);
`

[3](#3)

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

*Returns*: *this[.](#3.sentence-1)
