std::ostream_iterator is only useful if the output needs to be
formatted and std::ostreambuf_iterator only works with types that
have a std::char_traits specialisation.
The purpose of unformatted_ostream_iterator is to write to an ostream
object without formatting (so integers will be written as binary rather
than as text).
std::ostream_iterator
is only useful if the output needs to be formatted andstd::ostreambuf_iterator
only works with types that have astd::char_traits
specialisation.The purpose of
unformatted_ostream_iterator
is to write to an ostream object without formatting (so integers will be written as binary rather than as text).