CGAL::Join_input_iterator_1<Iterator, Creator>

Definition

The class Join_input_iterator_1<Iterator, Creator> joins an iterator and a creator function object. The result is again an iterator (of the same iterator category type as the original iterator) that reads an object from the stream and applies a creator function object to that object.

#include <CGAL/iterator.h>

Is Model for the Concepts

InputIterator

Types

Join_input_iterator_1<Iterator, Creator>::value_type
typedef to Creator::result_type.

Creation

Join_input_iterator_1<Iterator, Creator> join ( Iterator i, Creator creator);
creates a join iterator from the given iterator i and the functor creator. Applies creator to each item read from i.


Join_input_iterator_1<Iterator, Creator> join ( Iterator i);
creates a join iterator from the given iterator i and a default constructed instance of Creator. The latter instance is applied to each item read from i.

See Also

CGAL::Creator_1<Arg, Result>