|
-
February 4th, 2003, 04:21 AM
#1
Question about STL output iterator.
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|