27 Iterators library [iterators]

27.6 Stream iterators [stream.iterators]

27.6.2 Class template ostream_­iterator [ostream.iterator]

27.6.2.1 ostream_­iterator constructors and destructor [ostream.iterator.cons.des]

ostream_iterator(ostream_type& s);

Effects: Initializes out_­stream with addressof(s) and delim with null.

ostream_iterator(ostream_type& s, const charT* delimiter);

Effects: Initializes out_­stream with addressof(s) and delim with delimiter.

ostream_iterator(const ostream_iterator& x);

Effects: Constructs a copy of x.

~ostream_iterator();

Effects: The iterator is destroyed.