std::ostream_iterator::~ostream_iterator

From cppreference.com
~ostream_iterator()

Destructs the iterator. Does not affect the associated output stream.