#include <CGAL/IO/Istream_iterator.h>
|
| |
|
creates an end-of-stream iterator i. This is a past-the-end
iterator, and it is useful when constructing a range.
| |
|
| |
|
creates an input iterator i reading from .
When reaches end of stream, this iterator will
compare equal to an end-of-stream iterator created using the
default constructor.
| |
#include <CGAL/Cartesian.h>
#include <CGAL/Point_2.h>
#include <CGAL/IO/Istream_iterator.h>
#include <CGAL/IO/Window_stream.h>
#include <iostream.h>
#include <algo.h>
typedef CGAL_Point_2< CGAL_Cartesian< double > > Point;
typedef CGAL_Istream_iterator< Point, CGAL_Window_stream> Iterator;
int main () {
CGAL_Window_stream window( 512, 512);
window.init( -1.0, 1.0, -1.0);
copy( Iterator(window), Iterator(), ostream_iterator<Point>(cout,"\n"));
return 0;
}