[ostreambuf.iter.ops]

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

## 24.6 Stream iterators [[stream.iterators]](stream.iterators#ostreambuf.iter.ops)

### 24.6.5 Class template ostreambuf_iterator [[ostreambuf.iterator]](ostreambuf.iterator#ostreambuf.iter.ops)

#### 24.6.5.3 Operations [ostreambuf.iter.ops]

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

`ostreambuf_iterator& operator=(charT c);
`

[1](#1)

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

*Effects*: Iffailed() yieldsfalse,
callssbuf_->sputc(c);
otherwise has no effect[.](#1.sentence-1)

[2](#2)

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

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

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

`ostreambuf_iterator& operator*();
`

[3](#3)

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

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

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

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

[4](#4)

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

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

[ð](#lib:failed,ostreambuf_iterator)

`bool failed() const noexcept;
`

[5](#5)

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

*Returns*: true if in any prior use of memberoperator=,
the call tosbuf_->sputc() returnedtraits​::​eof();
orfalse otherwise[.](#5.sentence-1)
