CGAL::copy_n

Definition

The function copy_n copies n items from an input iterator to an output iterator which is useful for possibly infinite sequences of random geometric objects.1

#include <CGAL/algorithm.h>

template <class InputIterator, class Size, class OutputIterator>
OutputIterator
copy_n ( InputIterator first,
Size n,
OutputIterator result)
copies the first n items from first to result. Returns the value of result after inserting the n items.

See Also

CGAL::Counting_iterator<Iterator, Value>


Footnotes

 1  The STL release June 13, 1997, from SGI contains an equivalent function, but it is not part of the ISO standard.