BloombergLP::bdlb::FunctionOutputIterator::FunctionOutputIterator

Create an iterator that invokes the specified function.

Synopsis

Declared in <bdlb_functionoutputiterator.h>

explicit
FunctionOutputIterator(FUNCTION const& function);

Description

Create a FunctionOutputIterator object that, when an assignment is performed on the dereferenced object, will call the specified function passing the assigned value as the argument.

Parameters

NameDescription
functionfunctor or function pointer invoked on assignment