CGAL 5.5.2 - STL Extensions for CGAL
|
#include <CGAL/iterator.h>
The iterator adaptor Counting_iterator
adds a counter to the internal iterator of type Iterator
and defines equality of two instances in terms of this counter.
It can be used to create finite sequences of possibly infinite sequences of values from input iterators.
Requirements
Iterator
is a model for InputIterator
.
CGAL::copy_n()
Creation | |
Counting_iterator (std::size_t n=0) | |
initializes the internal counter to n and i has a singular value. | |
Counting_iterator (Iterator j, std::size_t n=0) | |
initializes the internal counter to n and i to j . | |