[#BloombergLP-bslma-ConstructionUtil_AllocAdaptorUtil-0b-adapt-0e] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/ConstructionUtil_AllocAdaptorUtil-0b.adoc[ConstructionUtil_AllocAdaptorUtil<TYPE, false, true>]::adapt :relfileprefix: ../../../ :mrdocs: Return the specified `alloc_p` pointer, implicitly converted to `bslma::Allocator *`. Compilation will fail unless `ALLOC` is derived from `bslma::Allocator`. == Synopsis Declared in `<bslma_constructionutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ALLOC> static xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* adapt(ALLOC const*& alloc_p); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#