22 Iterators library [iterators]

22.6 Stream iterators [stream.iterators]

22.6.2 Class template ostream_­iterator [ostream.iterator]

22.6.2.1 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.