"Fossies" - the Fresh Open Source Software Archive

Member "doc_html/Stream_support/classCGAL_1_1Istream__iterator.html" (8 Nov 2019, 11479 Bytes) of package /linux/misc/CGAL-4.14.2-doc_html.tar.xz:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the CGAL-4.14.2-doc_html.tar.xz project site itself.

\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)

CGAL 4.14.2 - IO Streams
CGAL::Istream_iterator< T, Stream > Class Template Reference

#include <CGAL/IO/Istream_iterator.h>

Definition

The class Istream_iterator 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.

Is Model Of:
InputIterator

Creation

 Istream_iterator ()
 creates an end-of-stream iterator. More...
 
 Istream_iterator (Stream &s)
 creates an input iterator reading from s. More...
 

Constructor & Destructor Documentation

◆ Istream_iterator() [1/2]

template<typename T , typename Stream >
CGAL::Istream_iterator< T, Stream >::Istream_iterator ( )

creates an end-of-stream iterator.

This is a past-the-end iterator, and it is useful when constructing a range.

◆ Istream_iterator() [2/2]

template<typename T , typename Stream >
CGAL::Istream_iterator< T, Stream >::Istream_iterator ( Stream &  s)

creates an input iterator 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.