std::ostream_iterator<T,CharT,Traits>::~ostream_iterator

From cppreference.com
~ostream_iterator()

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