[#BloombergLP-bdlb-TransformIterator_AllocatorOfFunctorMethod-01]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::TransformIterator&lowbar;AllocatorOfFunctorMethod
:relfileprefix: ../../
:mrdocs:

Base class template that optionally provides an `allocator` method&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class BASE&lowbar;TYPE,
    bool&gt;
struct TransformIterator&lowbar;AllocatorOfFunctorMethod;
----

== Description

The `TransformIterator&lowbar;AllocatorOfFunctorMethod` class template has an allocator method when its boolean template parameter is `true`, which will be made to be the case when the iterator of the transform iterator does not use allocators and the functor of the transform iterator uses allocators&period; The transform iterator type itself is supplied as `BASE&lowbar;TYPE`&period;

== Specializations

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlb/TransformIterator_AllocatorOfFunctorMethod-0d.adoc[`TransformIterator&lowbar;AllocatorOfFunctorMethod&lt;BASE&lowbar;TYPE, true&gt;`] 
| Base providing `allocator` when only the functor uses allocators&period;
|===


== Derived Classes

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlb/TransformIterator.adoc[`TransformIterator`] 
| Wrapping iterator that invokes a functor on dereference&period;
|===


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