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

`adapt` overloads

== Synopses

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

Return `from` adapted for initializing another AA object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;ALLOC&gt;
static
t&lowbar;ALLOC
xref:BloombergLP/bslma/AllocatorUtil/adapt-03.adoc[adapt](t&lowbar;ALLOC const& from)
requires ! IsDerivedFromBslAllocator&lt;t&lowbar;ALLOC&gt;&colon;&colon;value;
----

[.small]#xref:BloombergLP/bslma/AllocatorUtil/adapt-03.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:BloombergLP/bslma/AllocatorUtil/adapt-0f.adoc[_» more&period;&period;&period;_]#

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *from*
| allocator to adapt
|===


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