[#BloombergLP-bdlb-TransformIteratorUtil-make]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/TransformIteratorUtil.adoc[TransformIteratorUtil]::make
:relfileprefix: ../../../
:mrdocs:

Return a transform iterator constructed from `iterator` and `functor`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class FUNCTOR,
    class ITERATOR&gt;
static
xref:BloombergLP/bdlb/TransformIterator.adoc[TransformIterator&lt;FUNCTOR, ITERATOR&gt;]
make(
    ITERATOR const& iterator,
    FUNCTOR const& functor,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

== Description

Return a `TransformIterator` object constructed with the specified `iterator` and `functor`&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; Note that if the compiler does not implement the return&hyphen;value optimization, this function may return a copy created with the default allocator even if a different allocator is supplied&period;

== Return Value

a `TransformIterator` constructed from `iterator` and `functor`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *iterator*
| underlying iterator to hold
| *functor*
| transforming functor to apply on dereference
| *basicAllocator*
| allocator used to supply memory
|===


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