[#BloombergLP-bdlb-FunctionOutputIterator-2constructor-0d]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/FunctionOutputIterator.adoc[FunctionOutputIterator]::FunctionOutputIterator
:relfileprefix: ../../../
:mrdocs:

Create an iterator that invokes the specified `function`&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;functionoutputiterator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
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&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *function*
| functor or function pointer invoked on assignment
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
