|
-
February 6th, 2003, 03:35 AM
#1
Question about input iterator.
Hi, everyone!
I am puzzled at some words taken from my STL
tutorial. Here are the words at which I am puzzled.
--------
Note: For two input iterators a and b, a == b implies *a == *b.
For istream iterators, this condition doesn't hold.
--------
My opinion is,
--------
Two istream iterators are equal if :
both are end-of-stream iterators and this can no longer be read, or
both can read and use the same stream
from "The C++ Standard Library" by Josuttis.
--------
So I think whether a and b are equal has nothing to do
with *a and *b. Another question, "input iterators" is
different from "istream iterators"? I think they are the same.
Am I correct? Who can give me an explanation?
Better with an example. :-)
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
|