Hi, everyone!

My STL tutorial says,

--------
Assignment through the same value of the iterator should happen only once.

ostream_iterator<int> r (cout);
*r = 0;
*r = 1;

is not a valid code sequence.
--------

But I tried the above code sample, it works OK!
The output is 0 and 1.

What is the meaning of the tutorial?


Thanks in advance,
George