An ostreambuf_iterator is an iterator adapter that writes raw binary data to an output stream. Dereferencing and writing to an ostreambuf_iterator writes unformatted data to the stream.
ostreambuf_iterator is a template type whose type argument is the data type to hold the raw binary data read. In almost all cases, this should be char.
ostream_iterator<T> Member Functionsostreambuf_iterator that writes binary data to the specified stream.Constructs a new ostreambuf_iterator that writes to the specified stream.