The class Istream_iterator<T,Stream> is an input iterator adaptor for the input stream class Stream and value type T. It is particularly useful for classes that are similar but not compatible to std::istream.
#include <CGAL/IO/Istream_iterator.h>
Istream_iterator<T,Stream> i; | |
creates an end-of-stream
iterator i. This is a past-the-end iterator, and it is useful
when constructing a range.
| |
Istream_iterator<T,Stream> i ( Stream& s); | |
creates an input
iterator i reading from s. When s reaches end of stream,
this iterator will compare equal to an end-of-stream iterator
created using the default constructor.
|
i fulfills the requirements for an input iterator.