public member function
<iterator>

std::ostream_iterator::operator=

ostream_iterator& operator= (const value_type& value);
Assignment operator
Inserts value into the associated stream.

If the object has a delimiter set, it is also inserted after value.

Note that because operator* returns *this, this also applies to the dereferenced value.

Parameters

value
An element.
Member type value_type is the type of the elements the iterator iterates (an alias of the first class template parameter, T).

Return value

*this

Data races

Modifies the object.
The iterator returned can be used to access or modify pointed elements.

Exception safety

Provides the same level of guarantee as the insertion operation on the stream.

See also