[#BloombergLP-bslma-AllocatorUtil-adapt-0f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/AllocatorUtil.adoc[AllocatorUtil]::adapt
:relfileprefix: ../../../
:mrdocs:

Return the `bslma&colon;&colon;Allocator` pointer held by `from`&period;

== Synopsis

Declared in `&lt;bslma&lowbar;allocatorutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;TYPE&gt;
static
xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]*
adapt(xref:bsl/allocator-0df.adoc[bsl::allocator&lt;t&lowbar;TYPE&gt;] const& from);
----

== Return Value

the `bslma&colon;&colon;Allocator` pointer held by `from`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *from*
| `bsl&colon;&colon;allocator` to adapt
|===


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