Template Class insert_iterator¶
- Defined in File iterator.h
Inheritance Relationships¶
Base Type¶
public std::iterator< std::output_iterator_tag, void, void, void, void >
Derived Type¶
public shad::buffered_insert_iterator< Container >
(Template Class buffered_insert_iterator)
Class Documentation¶
-
template <typename Container>
classinsert_iterator
: public std::iterator<std::output_iterator_tag, void, void, void, void>¶ Insert iterator (over a shad container).
shad::insert_iterator is an OutputIterator that inserts elements into a distributed container for which it was constructed, at the position pointed to by the supplied iterator. The buffered insertion is performed whenever the iterator (whether dereferenced or not) is assigned to. Incrementing the shad::buffered_insert_iterator is a no-op.
- Template Parameters
Container
: The type of the distributed container.
Subclassed by shad::buffered_insert_iterator< Container >
Public Types
-
template<>
usingvalue_type
= typename Container::value_type¶
-
template<>
usingcontainer_type
= Container¶
Public Functions
-
insert_iterator
(Container &container, Iterator iterator)¶ Constructor.
- Parameters
container
: The container into which the iterator inserts.iterator
: The position at which the iterator starts to insert.
-
insert_iterator &
operator=
(const value_type &value)¶ The assignment operator.
The assignment operator inserts a value (through buffering) and advance iterator.
- Return
- A self reference.
- Parameters
value
: A const reference to the value to be inserted.
-
insert_iterator &
operator*
()¶
-
insert_iterator &
operator++
()¶
-
insert_iterator &
operator++
(int)¶