Provide an output iterator that ignores the output that is provided. De‐referencing an iterator and assigning to the returned value has no effect.

Synopsis

Declared in <bdlb_nulloutputiterator.h>

template<class TYPE>
class NullOutputIterator;

Type Aliases

Name

Description

AssignmentProxy

AssignmentProxy is an alias for an object type returned by de‐referencing operator.

difference_type

Type used to represent distances between iterators (unused).

iterator_category

Standard iterator category for this iterator type.

pointer

Pointer type for this iterator (unused).

reference

value_type

Type of values that can be written through this iterator.

Member Functions

Name

Description

NullOutputIterator [constructor]

Constructors

~NullOutputIterator [destructor]

Destroy this object.

operator=

Assign to this object the value of the specified rhs iterator, and return a reference providing modifiable access to this object.

operator*

Return an object that can appear on the left‐hand side of an assignment from TYPE. The assignment to the returned object has no effect.

operator++

Set this object to point to the next writable element, and return a reference providing modifiable access to this object. This operation has no effect.

Created with MrDocs