[#BloombergLP-bslma-ConstructionUtil_AllocAdaptorUtil-0b-adapt-0e]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/ConstructionUtil_AllocAdaptorUtil-0b.adoc[ConstructionUtil&lowbar;AllocAdaptorUtil&lt;TYPE, false, true&gt;]::adapt
:relfileprefix: ../../../
:mrdocs:

Return the specified `alloc&lowbar;p` pointer, implicitly converted to `bslma&colon;&colon;Allocator &ast;`&period; Compilation will fail unless `ALLOC` is derived from `bslma&colon;&colon;Allocator`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ALLOC&gt;
static
xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]*
adapt(ALLOC const*& alloc&lowbar;p);
----

== Return Value

`alloc&lowbar;p` converted to `bslma&colon;&colon;Allocator &ast;`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *alloc&lowbar;p*
| pointer to an allocator derived from `bslma&colon;&colon;Allocator`
|===


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