[#BloombergLP-bslma-ConstructionUtil_AllocAdaptorUtil-05] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/ConstructionUtil_AllocAdaptorUtil-06.adoc[ConstructionUtil_AllocAdaptorUtil]<TYPE, true, IS_BSLMA_AA> :relfileprefix: ../../ :mrdocs: This utility class template provides a static `adapt` method that adapts an allocator object to the type expected by `TYPE`. This partial specialization is instantiated for types that expect an allocator of type `TYPE::allocator_type`. == Synopsis Declared in `<bslma_constructionutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class TYPE, bool IS_BSLMA_AA> struct xref:BloombergLP/bslma/ConstructionUtil_AllocAdaptorUtil-06.adoc[ConstructionUtil_AllocAdaptorUtil]<TYPE, true, IS_BSLMA_AA>; ---- == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslma/ConstructionUtil_AllocAdaptorUtil-05/adapt.adoc[`adapt`] | Return the specified `a` allocator, implicitly converted to `TYPE::allocator_type`. Compilation will fail if implicit conversion to the return type is invalid. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#