[#BloombergLP-bslma-ConstructionUtil_AllocAdaptorUtil-0b-adapt-01] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/ConstructionUtil_AllocAdaptorUtil-0b.adoc[ConstructionUtil_AllocAdaptorUtil<TYPE, false, true>]::adapt :relfileprefix: ../../../ :mrdocs: `adapt` overloads == Synopses Declared in `<bslma_constructionutil.h>` Return the `bslma::Allocator` pointer held by the specified `a` object of non‐pointer class. Compilation will fail if type `ALLOC` does not provide a `mechanism()` accessor returning a pointer to type convertible to `bslma::Allocator *`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ALLOC> static xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* xref:BloombergLP/bslma/ConstructionUtil_AllocAdaptorUtil-0b/adapt-03.adoc[adapt](ALLOC const& a); ---- [.small]#xref:BloombergLP/bslma/ConstructionUtil_AllocAdaptorUtil-0b/adapt-03.adoc[_» more..._]# Return the specified `alloc_p` pointer, implicitly converted to `bslma::Allocator *`. Compilation will fail unless `ALLOC` is derived from `bslma::Allocator`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ALLOC> static xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* xref:BloombergLP/bslma/ConstructionUtil_AllocAdaptorUtil-0b/adapt-0e.adoc[adapt](ALLOC const*& alloc_p); ---- [.small]#xref:BloombergLP/bslma/ConstructionUtil_AllocAdaptorUtil-0b/adapt-0e.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#