[#BloombergLP-bslmt-EntryPointFunctorAdapterUtil-allocateAdapter]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/EntryPointFunctorAdapterUtil.adoc[EntryPointFunctorAdapterUtil]::allocateAdapter
:relfileprefix: ../../../
:mrdocs:

Allocate a new `EntryPointFunctorAdapter` holding copies of the specified `invokable` object and `threadName`, and load the result into the specified `adapter`&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;

== Synopsis

Declared in `&lt;bslmt&lowbar;entrypointfunctoradapter&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename TYPE&gt;
static
void
allocateAdapter(
    xref:BloombergLP/bslma/ManagedPtr-0fa.adoc[bslma::ManagedPtr&lt;EntryPointFunctorAdapter&lt;TYPE&gt;&gt;]* adapter,
    TYPE const& invokable,
    xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] const& threadName,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----


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