[ostream.iterator.cons.des]

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

## 24.6 Stream iterators [[stream.iterators]](stream.iterators#ostream.iterator.cons.des)

### 24.6.3 Class template ostream_iterator [[ostream.iterator]](ostream.iterator#cons.des)

#### 24.6.3.2 Constructors and destructor [ostream.iterator.cons.des]

[ð](#lib:ostream_iterator,constructor)

`ostream_iterator(ostream_type& s);
`

[1](#1)

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

*Effects*: Initializes out_stream with addressof(s) anddelim with nullptr[.](#1.sentence-1)

[ð](#lib:ostream_iterator,constructor_)

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

[2](#2)

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

*Effects*: Initializes out_stream with addressof(s) anddelim with delimiter[.](#2.sentence-1)
