A trivial output iterator. More...
#include <TrivialOutputIterator.h>
Public Types | |
typedef Base::iterator_category | iterator_category |
The iterator category. | |
typedef Base::value_type | value_type |
The type "pointed to" by the iterator. | |
typedef Base::difference_type | difference_type |
Distance between iterators is represented as this type. | |
typedef Base::pointer | pointer |
This type represents a pointer-to-value_type. | |
typedef Base::reference | reference |
This type represents a reference-to-value_type. | |
Public Member Functions | |
Constructors etc. | |
TrivialOutputIterator () | |
Default constructor. | |
TrivialOutputIterator (const TrivialOutputIterator &) | |
Copy constructor. | |
TrivialOutputIterator & | operator= (const TrivialOutputIterator &) |
Assignment operator. | |
Functionality | |
template<typename Value > | |
TrivialOutputIterator & | operator= (const Value &) |
Assignment of the "value type". | |
TrivialOutputIterator & | operator* () |
Dereference. | |
TrivialOutputIterator & | operator++ () |
Pre-increment. | |
TrivialOutputIterator | operator++ (int) |
Post-increment. |
A trivial output iterator.
This is useful when you need a null container. When a function writes to an output iterator, but you do not need that result, you can use this trivial output iterator.