Provide an output iterator that invokes a client-supplied functor.
Declared in <bdlb_functionoutputiterator.h>
template<class FUNCTION>
class FunctionOutputIterator;
Provide an output iterator that calls an object of the (template parameter) type FUNCTION. If FUNCTION is a functor, de-referencing this iterator and assigning to the result (of dereferencing) will call the operator() of the functor with the assigned value as a parameter. Similarly, if FUNCTION is a function pointer type, assigning to the dereferenced iterator will call the function supplied at construction with the assigned value as a parameter.
| Name | Description |
|---|---|
difference_type | Unused difference type required by iterator_traits (always void). |
iterator_category | Tag identifying this type as an output iterator. |
pointer | Unused pointer type required by iterator_traits (always void). |
reference | Unused reference type required by iterator_traits (always void). |
value_type | Unused value type required by iterator_traits (always void). |
| Name | Description |
|---|---|
FunctionOutputIterator [constructor] | Constructors |
operator* | Return a proxy that invokes the held functor on assignment. |
| Name | Description |
|---|---|
operator++ | Do nothing and return a copy of the specified iterator. |
operator++ | Do nothing and return the specified iterator. |