Performes an addition using a container's memberfunction add, when operator= is called. More...
Public Types | |
typedef ContainerT | container_type |
The container's type. | |
Public Member Functions | |
add_iterator (ContainerT &cont, typename ContainerT::iterator iter) | |
add_iterator & | operator= (typename ContainerT::const_reference value) |
Performes an addition using a container's memberfunction add, when operator= is called.
typedef ContainerT boost::icl::add_iterator< ContainerT >::container_type |
The container's type.
boost::icl::add_iterator< ContainerT >::add_iterator | ( | ContainerT & | cont, | |
typename ContainerT::iterator | iter | |||
) | [inline] |
An add_iterator is constructed with a container and a position that has to be maintained.
add_iterator& boost::icl::add_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.