Files
cppdraft_translate/cppdraft/ostreambuf/iter/ops.md
2025-10-25 03:02:53 +03:00

1.6 KiB
Raw Blame History

[ostreambuf.iter.ops]

24 Iterators library [iterators]

24.6 Stream iterators [stream.iterators]

24.6.5 Class template ostreambuf_iterator [ostreambuf.iterator]

24.6.5.3 Operations [ostreambuf.iter.ops]

🔗

ostreambuf_iterator& operator=(charT c);

1

#

Effects: Iffailed() yieldsfalse, callssbuf_->sputc(c); otherwise has no effect.

2

#

Returns: *this.

🔗

ostreambuf_iterator& operator*();

3

#

Returns: *this.

🔗

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

4

#

Returns: *this.

🔗

bool failed() const noexcept;

5

#

Returns: true if in any prior use of memberoperator=, the call tosbuf_->sputc() returnedtraits::eof(); orfalse otherwise.