Standard C++ Library Reference ISO/IEC (VERSION3)
object that can serve as a forward iterator.
front_insert_iterator
template<class Container>
 class front_insert_iterator
 : public iterator<output_iterator_tag,
 void, void, void, void> {
public:
 typedef Container container_type;
 typedef typename Container::reference reference;
 explicit front_insert_iterator(Container& cont);
 front_insert_iterator&
 operator=(typename Container::const_reference val);
 front_insert_iterator& operator*();
 front_insert_iterator& operator++();
 front_insert_iterator operator++(int);
protected:
 Container *container;
 };
The template class describes an output iterator object. It inserts elements into a container of type
Container, which it accesses via the protected pointer object it stores called container. The
container must define:
the member type const_reference, which is the type of a constant reference to an element
of the sequence controlled by the container
● 
the member type reference, which is the type of a reference to an element of the sequence
controlled by the container
● 
the member type value_type, which is the type of an element of the sequence controlled by
the container
● 
the member function push_front(value_type val), which prepends a new element
with value val to the beginning of the sequence
● 
front_insert_iterator::container_type
typedef Container container_type;
The type is a synonym for the template parameter Container.
front_insert_iterator::front_insert_iterator
explicit front_insert_iterator(Container& cont);
The constructor initializes container with &cont.










