27 Iterators library [iterators]

27.6 Stream iterators [stream.iterators]

27.6.4 Class template ostreambuf_­iterator [ostreambuf.iterator]

27.6.4.1 ostreambuf_­iterator constructors [ostreambuf.iter.cons]

ostreambuf_iterator(ostream_type& s) noexcept;

Requires: s.rdbuf() shall not be a null pointer.

Effects: Initializes sbuf_­ with s.rdbuf().

ostreambuf_iterator(streambuf_type* s) noexcept;

Requires: s shall not be a null pointer.

Effects: Initializes sbuf_­ with s.