[#BloombergLP-bslma-ConstructionUtil_AllocAdaptorUtil-0b-adapt-03]
= 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 `bslma&colon;&colon;Allocator` pointer held by the specified `a` object of non&hyphen;pointer class&period; Compilation will fail if type `ALLOC` does not provide a `mechanism()` accessor returning a pointer to type convertible to `bslma&colon;&colon;Allocator &ast;`&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& a);
----


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