Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::icl::insert_iterator< ContainerT > Class Template Reference

Performes an insertion using a container's memberfunction add, when operator= is called. More...

#include <iterator.hpp>

Inheritance diagram for boost::icl::insert_iterator< ContainerT >:
Collaboration diagram for boost::icl::insert_iterator< ContainerT >:

Public Types

typedef ContainerT container_type
 The container's type. More...
 
typedef std::output_iterator_tag iterator_category
 

Public Member Functions

 insert_iterator (ContainerT &cont, typename ContainerT::iterator iter)
 An insert_iterator is constructed with a container and a position that has to be maintained. More...
 
insert_iteratoroperator= (typename ContainerT::const_reference value)
 This assignment operator adds the value before the current position. More...
 
insert_iteratoroperator* ()
 
insert_iteratoroperator++ ()
 
insert_iteratoroperator++ (int)
 

Detailed Description

template<class ContainerT>
class boost::icl::insert_iterator< ContainerT >

Performes an insertion using a container's memberfunction add, when operator= is called.

Member Typedef Documentation

template<class ContainerT>
typedef ContainerT boost::icl::insert_iterator< ContainerT >::container_type

The container's type.

template<class ContainerT>
typedef std::output_iterator_tag boost::icl::insert_iterator< ContainerT >::iterator_category

Constructor & Destructor Documentation

template<class ContainerT>
boost::icl::insert_iterator< ContainerT >::insert_iterator ( ContainerT &  cont,
typename ContainerT::iterator  iter 
)
inline

An insert_iterator is constructed with a container and a position that has to be maintained.

Member Function Documentation

template<class ContainerT>
insert_iterator& boost::icl::insert_iterator< ContainerT >::operator* ( )
inline
template<class ContainerT>
insert_iterator& boost::icl::insert_iterator< ContainerT >::operator++ ( )
inline
template<class ContainerT>
insert_iterator& boost::icl::insert_iterator< ContainerT >::operator++ ( int  )
inline
template<class ContainerT>
insert_iterator& boost::icl::insert_iterator< ContainerT >::operator= ( typename ContainerT::const_reference  value)
inline

This assignment operator adds the value before the current position.

It maintains it's position by incrementing after addition.


The documentation for this class was generated from the following file: