The iterator adaptor Counting_iterator<Iterator, Value> 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. It complies itself to the requirements of input iterators.
#include <CGAL/Counting_iterator.h>
| |
initializes the
internal counter to and i has a singular value.
| |
| |
initializes the internal counter to and i to .
|
copy_n.