Navigation: Up, Table of Contents, Bibliography, Index, Title Page

## CGAL::Insert_iterator<Container>

### Definition

The output iterator Insert_iterator<Container> is similar to std::insert_iterator, but differs in that it calls the insert() function of the container without the iterator additional argument.

#include <CGAL/iterator.h>

### Is Model for the Concept

OutputIterator

### Requirements

Container provides a member function insert(const Container::const_reference&).

### Creation

Insert_iterator<Container> i ( Container &c);
| initializes the internal container reference to c.

There is also a global function similar to std::inserter:

template < class Container >
Insert_iterator<Container>
| inserter ( Container &x)
|  | Constructs Insert_iterator<Container>(x).

Next: N_step_adaptor<I,int N>

Navigation: Table of Contents, Bibliography, Index, Title Page

The CGAL Project . Tue, December 21, 2004 .